iio temperature/mlx90632: silence a static checker warning
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 22 Feb 2018 09:14:53 +0000 (12:14 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 24 Feb 2018 13:32:05 +0000 (13:32 +0000)
commitc50fadeff758d4cc6e1ed196f776ae3016b3e021
tree0a346595987156bd9bb9f8ca629e5dbfb4471844
parent1b3079a721106a441dcbd14c55908ab406324c66
iio temperature/mlx90632: silence a static checker warning

This shouldn't affect runtime at all, but Smatch complains that we
should check if mlx90632_read_ambient_raw() otherwise we
"ambient_new_raw" can be uninitialized.

    drivers/iio/temperature/mlx90632.c:509 mlx90632_calc_ambient_dsp105()
    error: uninitialized symbol 'ambient_new_raw'.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Crt Mori <cmo@melexis.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90632.c