]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdnsp: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Mar 2021 19:13:57 +0000 (19:13 +0000)
committerPeter Chen <peter.chen@kernel.org>
Mon, 12 Apr 2021 12:19:22 +0000 (20:19 +0800)
commit249bd16d4724eee6b039b30c1a79d1d69e07967e
treea8a047264852f90fa60a3023fecd7bc6e8e3144d
parent8af36fb577266408d4d92b2170241995ba06839d
usb: cdnsp: remove redundant initialization of variable ret

The variable ret is being initialized with a value that is
never read and it is being updated later with a new value.  The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Peter Chen <peter.chen@kernel.org>
drivers/usb/cdns3/cdnsp-mem.c