iio: light: isl29501: Simplify code to kill compiler warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 23 Aug 2018 21:24:35 +0000 (23:24 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 2 Sep 2018 08:56:49 +0000 (09:56 +0100)
commit24493cce03b689f9723244f9a7c2247296fc617e
tree407ff781e9a5e523c14d16e5e46d61e2050afd69
parent8ba0dbfd07a3587aedb952a95292e41d70dbf16e
iio: light: isl29501: Simplify code to kill compiler warning

With gcc 4.1.2:

    drivers/iio/proximity/isl29501.c: In function ‘isl29501_register_write’:
    drivers/iio/proximity/isl29501.c:235: warning: ‘msb’ may be used uninitialized in this function

While this is a false positive, it can easily be avoided by removing the
"msb" intermediate variable.
Remove the "lsb" intermediate variable for consistency.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/isl29501.c