usb: typec: ucsi: ccg: Fix uninitilized symbol error
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 1 Aug 2019 07:55:12 +0000 (10:55 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2019 16:25:03 +0000 (18:25 +0200)
commita29d56c2ed24ad33062bfdafdec9e34149715320
tree831ef814f49c9e28b77a1a4e64b8f8bd06e7db98
parent12ca7297b8855c0af1848503d37196159b24e6b9
usb: typec: ucsi: ccg: Fix uninitilized symbol error

Fix smatch error:
drivers/usb/typec/ucsi/ucsi_ccg.c:975 ccg_fw_update() error: uninitialized symbol 'err'.

Fixes: 5c9ae5a87573 ("usb: typec: ucsi: ccg: add firmware flashing support")
Cc: stable@vger.kernel.org
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20190801075512.24354-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi_ccg.c