]> git.baikalelectronics.ru Git - kernel.git/commit
iio: pressure: bmp280: fix wrong pointer passed to PTR_ERR()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 14 Jul 2016 11:06:11 +0000 (11:06 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 14:38:59 +0000 (15:38 +0100)
commit4921361c465f65c5b7643c27452e5df375c3216c
treede848c17a63419122e8b09e3cdd4c6bb71b7522d
parent92eda0ff5e2879da54cd299e1946d13cb37b1706
iio: pressure: bmp280: fix wrong pointer passed to PTR_ERR()

PTR_ERR should access the value just tested by IS_ERR, otherwise
the wrong error code will be returned.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/bmp280-core.c