Skip to content

Commit a29d56c

Browse files
Heikki Krogerusgregkh
authored andcommitted
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: 5c9ae5a ("usb: typec: ucsi: ccg: add firmware flashing support") Cc: [email protected] Reported-by: kbuild test robot <[email protected]> Signed-off-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 12ca729 commit a29d56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/ucsi/ucsi_ccg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ static int do_flash(struct ucsi_ccg *uc, enum enum_flash_mode mode)
10181018
******************************************************************************/
10191019
static int ccg_fw_update(struct ucsi_ccg *uc, enum enum_flash_mode flash_mode)
10201020
{
1021-
int err;
1021+
int err = 0;
10221022

10231023
while (flash_mode != FLASH_NOT_NEEDED) {
10241024
err = do_flash(uc, flash_mode);

0 commit comments

Comments
 (0)