Skip to content

Commit c310e54

Browse files
Colin Ian Kingdlezcano
authored andcommitted
thermal/drivers/mtk_thermal: Remove redundant initializations of several variables
Several variables are being initialized with values that is never read and being updated later with a new value. The initializations are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ab39c88 commit c310e54

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/thermal/mtk_thermal.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -573,12 +573,12 @@ static int raw_to_mcelsius_v1(struct mtk_thermal *mt, int sensno, s32 raw)
573573

574574
static int raw_to_mcelsius_v2(struct mtk_thermal *mt, int sensno, s32 raw)
575575
{
576-
s32 format_1 = 0;
577-
s32 format_2 = 0;
578-
s32 g_oe = 1;
579-
s32 g_gain = 1;
580-
s32 g_x_roomt = 0;
581-
s32 tmp = 0;
576+
s32 format_1;
577+
s32 format_2;
578+
s32 g_oe;
579+
s32 g_gain;
580+
s32 g_x_roomt;
581+
s32 tmp;
582582

583583
if (raw == 0)
584584
return 0;

0 commit comments

Comments
 (0)