misc: tsl2550: remove redundant initialization to variable r
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Jan 2020 17:52:34 +0000 (17:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:16:51 +0000 (15:16 +0100)
commitf896ee51b93e192fa38a62d8cef8c5e9bd4adf68
tree5b1609e2f2cbd4afb3fe906af1f9cb8c562d900d
parentb5a0d4bf2ee80e47629df0d7d8f4a7952ca39941
misc: tsl2550: remove redundant initialization to variable r

The variable r is being initialized with a value that is never
read and it is being updated later with a new value. Remove
the redundant initialization and move the declaration into a
deeper code block.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200107175234.121298-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/tsl2550.c