regulator: lp3971: Silence uninitialized variable warning
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Apr 2016 09:34:41 +0000 (12:34 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 14 Apr 2016 13:46:05 +0000 (14:46 +0100)
commit40e1d79ee16968bff7b3cf12c65d5740c02be1b6
tree7f7768c27237d018e6999aa544613bcd67e6e7ea
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
regulator: lp3971: Silence uninitialized variable warning

This is harmless but if lp3971_i2c_read() fails then "tmp" can be
uninitialized.  Silence the warning by moving the error handling up a
line.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/lp3971.c
This page took 0.037317 seconds and 5 git commands to generate.