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)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:10 +0000 (16:34 +0100)
commit1d204cd1324166221775bc13aab83d07ed85a13f
tree82f800bd0d9a68f08ca6f5b179ddab80c0ce3986
parenta4f6ba53b5d535a16e383f6673cb0948ee50518c
w1_therm: remove redundant assignments to variable ret

commit f37d13d52c0560bd2bac40b22466af538e61a5ce upstream.

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