From d4c4e6fdc7f5077fba3446f6e650eb94d07a0be5 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 25 Apr 2010 18:23:04 +0000 Subject: usb: remove dead assignments, spotted by clang analyzer Value stored is never read. Signed-off-by: Blue Swirl --- hw/usb-serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/usb-serial.c') diff --git a/hw/usb-serial.c b/hw/usb-serial.c index 69f0e44f11..5b2483ab44 100644 --- a/hw/usb-serial.c +++ b/hw/usb-serial.c @@ -449,7 +449,7 @@ static int usb_serial_handle_data(USBDevice *dev, USBPacket *p) /* handle serial break */ if (s->event_trigger && s->event_trigger & FTDI_BI) { s->event_trigger &= ~FTDI_BI; - *data++ = FTDI_BI; + *data = FTDI_BI; ret = 2; break; } else { -- cgit v1.2.3