]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65a12767e19beee81ce4d959383aebeb2692237d
tree7f7768c27237d018e6999aa544613bcd67e6e7ea
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
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