From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Courbot Subject: Re: [PATCH -next] gpio: Fix return value check in xgene_gpio_probe() Date: Fri, 19 Sep 2014 17:40:30 +0900 Message-ID: References: <1410477134-5556-1-git-send-email-weiyj_lk@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-ie0-f172.google.com ([209.85.223.172]:49205 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbaISIkw (ORCPT ); Fri, 19 Sep 2014 04:40:52 -0400 Received: by mail-ie0-f172.google.com with SMTP id rp18so1037969iec.17 for ; Fri, 19 Sep 2014 01:40:52 -0700 (PDT) In-Reply-To: <1410477134-5556-1-git-send-email-weiyj_lk@163.com> Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: weiyj_lk@163.com Cc: Linus Walleij , Grant Likely , Rob Herring , Wei Yongjun , "linux-gpio@vger.kernel.org" On Fri, Sep 12, 2014 at 8:12 AM, wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap_nocache() returns NULL > pointer not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Signed-off-by: Wei Yongjun Reviewed-by: Alexandre Courbot