mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
bt: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
2cc2026063
commit
7300c07991
3 changed files with 5 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue