aboutsummaryrefslogtreecommitdiff
path: root/bt-host.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:20:28 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-04-25 18:20:28 +0000
commit7300c07991e05e66e04528aa1c72e31c127a79cd (patch)
treef99c84710cec97b53166600d7ae83c9b0f6765a7 /bt-host.c
parent2cc2026063a7500670a76edd5ece59936ceec441 (diff)
downloadqemu-7300c07991e05e66e04528aa1c72e31c127a79cd.zip
qemu-7300c07991e05e66e04528aa1c72e31c127a79cd.tar.gz
qemu-7300c07991e05e66e04528aa1c72e31c127a79cd.tar.bz2
bt: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'bt-host.c')
-rw-r--r--bt-host.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bt-host.c b/bt-host.c
index 33b2761..6931e7c 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -50,19 +50,19 @@ static void bt_host_send(struct HCIInfo *hci,
struct bt_host_hci_s *s = (struct bt_host_hci_s *) hci;
uint8_t pkt = type;
struct iovec iv[2];
- int ret;
iv[0].iov_base = (void *)&pkt;
iv[0].iov_len = 1;
iv[1].iov_base = (void *) data;
iv[1].iov_len = len;
- while ((ret = writev(s->fd, iv, 2)) < 0)
+ while (writev(s->fd, iv, 2) < 0) {
if (errno != EAGAIN && errno != EINTR) {
fprintf(stderr, "qemu: error %i writing bluetooth packet.\n",
errno);
return;
}
+ }
}
static void bt_host_cmd(struct HCIInfo *hci, const uint8_t *data, int len)