w1_therm: remove redundant assignments to variable ret
authorColin Ian King <colin.king@canonical.com>
Tue, 19 May 2020 15:45:53 +0000 (16:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2020 08:58:51 +0000 (10:58 +0200)
commitf37d13d52c0560bd2bac40b22466af538e61a5ce
tree600d0ded74fdf5ff76a31a58a8d113ab2ef68715
parente420637b81f78d0fbacf539bdb1b341eba602aea
w1_therm: remove redundant assignments 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/20200519154553.873413-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/slaves/w1_therm.c