Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: lp3971: Do not hardcode return value

Propagate the error value returned by the function instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
a1985d46 38dbfb59

+1 -1
+1 -1
drivers/regulator/lp3971.c
··· 327 327 return -EIO; 328 328 ret = i2c_smbus_read_byte_data(i2c, reg); 329 329 if (ret < 0) 330 - return -EIO; 330 + return ret; 331 331 332 332 *dest = ret; 333 333 return 0;