From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <1468494371-23371-1-git-send-email-weiyj_lk@163.com> References: <1468487141-20016-1-git-send-email-weiyj_lk@163.com> <1468494371-23371-1-git-send-email-weiyj_lk@163.com> From: Linus Walleij Date: Fri, 22 Jul 2016 15:10:15 +0200 Message-ID: Subject: Re: [PATCH -next] iio: pressure: bmp280: fix wrong pointer passed to PTR_ERR() To: weiyj_lk@163.com, Jonathan Cameron Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Wei Yongjun , "linux-iio@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 List-ID: On Thu, Jul 14, 2016 at 1:06 PM, wrote: > From: Wei Yongjun > > PTR_ERR should access the value just tested by IS_ERR, otherwise > the wrong error code will be returned. > > Signed-off-by: Wei Yongjun My wrong! Thanks for fixing this. Reviewed-by: Linus Walleij Yours, Linuys Walleij