driver core: platform: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Apr 2020 11:13:41 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 15:04:22 +0000 (17:04 +0200)
commit45bb08de65b418959313593f527c619e102c2d57
tree0366d10ff63d10394cd590f3bee9f070098fea06
parent69b07ee33eb12a505d55e3e716fc7452496b9041
driver core: platform: remove redundant assignment to 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>
Link: https://lore.kernel.org/r/20200402111341.511801-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/platform.c