diff --git a/drivers/input/sensors/accel/mc3230.c b/drivers/input/sensors/accel/mc3230.c index 0a0fed4ee67c..fdd4a1fcfa62 100644 --- a/drivers/input/sensors/accel/mc3230.c +++ b/drivers/input/sensors/accel/mc3230.c @@ -518,7 +518,7 @@ static int mc3230_start(struct i2c_client *client, char rate) static inline int mc3230_convert_to_int(s16 value) { - int result; + int result = 0; if ((mc32x0_type == IS_MC3230) || (mc32x0_type == IS_MC2234)) { result = value * 192;