w1_therm: remove redundant assignments to variable ret
commit 1adae6e687805932aebf051d793745d2fc89b279 from https://github.com/raspberrypi/linux.git rpi-5.4.y commit f37d13d5 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> Signed-off-by: Meng Li <Meng.Li@windriver.com>
parent
05af9d5e
Please register or sign in to comment