]> git.baikalelectronics.ru Git - kernel.git/commit
misc: hisi_hikey_usb: fix return of uninitialized ret status variable
authorColin Ian King <colin.king@canonical.com>
Mon, 14 Sep 2020 13:56:46 +0000 (14:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2020 14:46:42 +0000 (16:46 +0200)
commit515399b7086dfd017d7abf472cdab64bc8bc4646
treef407f2f50c03d23e980d679939c53bd91c9df7a0
parent103b48914a1eaf6babdee28625ca715d2c39927b
misc: hisi_hikey_usb: fix return of uninitialized ret status variable

Currently the return value from ret is uninitialized so the function
hisi_hikey_usb_parse_kirin970 is returning a garbage value when
succeeding. Since ret is not used anywhere else in the function, remove
it and just return 0 success at the end of the function.

Fixes: 5ca506da4cd4 ("misc: hisi_hikey_usb: add support for Hikey 970")
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200914135646.99334-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hisi_hikey_usb.c