USB: serial: ir-usb: Silence harmless uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 Jan 2020 17:30:37 +0000 (20:30 +0300)
committerJohan Hovold <johan@kernel.org>
Mon, 10 Feb 2020 09:06:51 +0000 (10:06 +0100)
commitc664a4fa8f69308b8f624cff4fa1294e9aef880d
tree87927bd71159ff06942ed92e5509f94fbb0ba342
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
USB: serial: ir-usb: Silence harmless uninitialized variable warning

The "actual_length" variable might be uninitialized on some failure
paths.  It's harmless but static analysis tools like Smatch complain
and at runtime the UBSan tool will likely complain as well.

Fixes: e7542bc382f8 ("USB: serial: ir-usb: make set_termios synchronous")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ir-usb.c