aboutsummaryrefslogtreecommitdiff
path: root/hw/bt-hci-csr.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 /hw/bt-hci-csr.c
parent2cc2026063a7500670a76edd5ece59936ceec441 (diff)
bt: remove dead assignments, spotted by clang analyzer
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/bt-hci-csr.c')
-rw-r--r--hw/bt-hci-csr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/bt-hci-csr.c b/hw/bt-hci-csr.c
index 7300ea6799..982577d1bb 100644
--- a/hw/bt-hci-csr.c
+++ b/hw/bt-hci-csr.c
@@ -226,7 +226,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)
*rpkt ++ = 0x20; /* Operational settings negotation Ok */
memcpy(rpkt, pkt, 7); rpkt += 7;
*rpkt ++ = 0xff;
- *rpkt ++ = 0xff;
+ *rpkt = 0xff;
break;
case H4_ALIVE_PKT:
@@ -238,7 +238,7 @@ static void csrhci_in_packet(struct csrhci_s *s, uint8_t *pkt)
rpkt = csrhci_out_packet_csr(s, H4_ALIVE_PKT, 2);
*rpkt ++ = 0xcc;
- *rpkt ++ = 0x00;
+ *rpkt = 0x00;
break;
default: