Message ID | 20221117195921.2291-1-macroalpha82@gmail.com |
---|---|
State | New |
Headers | show |
Series | hynitron_cstxxx: Initialize tmp to 0 to fix uninitialized variable issue | expand |
diff --git a/drivers/input/touchscreen/hynitron_cstxxx.c b/drivers/input/touchscreen/hynitron_cstxxx.c index 333439fedb90..ed9056da786d 100644 --- a/drivers/input/touchscreen/hynitron_cstxxx.c +++ b/drivers/input/touchscreen/hynitron_cstxxx.c @@ -208,7 +208,7 @@ static int cst3xx_bootloader_enter(struct i2c_client *client) { int ret; u8 retry; - u32 tmp; + u32 tmp = 0; unsigned char buf[3]; for (retry = 0; retry < 5; retry++) {