The fw variable is initialized in request_ihex_firmware in the
non-failure case but the compiler is not smart enough to pick
this up so fixing this way.
Fixes the following warning:
drivers/usb/serial/keyspan.c:1298:18: warning: 'fw' may be used uninitialized in this function [-Wmaybe-uninitialized]
BUG=chromium-os:5542
TEST=compile
Change-Id: Id89b68bf4cc061b83615f8db52d2a80e6e9e5cb5
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/40569
Reviewed-by: Grant Grundler <grundler@chromium.org>
int response;
const struct ihex_binrec *record;
char *fw_name;
- const struct firmware *fw;
+ const struct firmware *fw = NULL;
dbg("Keyspan startup version %04x product %04x",
le16_to_cpu(serial->dev->descriptor.bcdDevice),