aboutsummaryrefslogtreecommitdiffstats
path: root/bt-host.c
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-09-09 23:49:44 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 00:30:34 -0700
commit3b290c31efd96e5474f2b55b7fe1ca0250a5bb47 (patch)
tree85926a92cab46a4c76f0c8630c43618ef3b1bb39 /bt-host.c
parente81106dda32dcf982eff8d080cc194faf9851172 (diff)
downloadexternal_qemu-3b290c31efd96e5474f2b55b7fe1ca0250a5bb47.zip
external_qemu-3b290c31efd96e5474f2b55b7fe1ca0250a5bb47.tar.gz
external_qemu-3b290c31efd96e5474f2b55b7fe1ca0250a5bb47.tar.bz2
upstream: minor updates.
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 964ac11..e174e90 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)