From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 10 Feb 2016 10:01:14 +0100 (CET) Received: from localhost.localdomain ([127.0.0.1]:39798 "EHLO linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by eddie.linux-mips.org with ESMTP id S27010852AbcBJJBLbnex6 (ORCPT ); Wed, 10 Feb 2016 10:01:11 +0100 Received: from scotty.linux-mips.net (localhost.localdomain [127.0.0.1]) by scotty.linux-mips.net (8.15.2/8.14.8) with ESMTP id u1A919l4010648; Wed, 10 Feb 2016 10:01:09 +0100 Received: (from ralf@localhost) by scotty.linux-mips.net (8.15.2/8.15.2/Submit) id u1A916MK010647; Wed, 10 Feb 2016 10:01:06 +0100 Date: Wed, 10 Feb 2016 10:01:06 +0100 From: Ralf Baechle To: John Crispin Cc: weiyj_lk@163.com, Matthias Brugger , linux-mips@linux-mips.org, Wei Yongjun , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] MIPS: pci-mt7620: Fix return value check in mt7620_pci_probe() Message-ID: <20160210090106.GA10352@linux-mips.org> References: <1454768659-32720-1-git-send-email-weiyj_lk@163.com> <56B613D3.2070709@openwrt.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56B613D3.2070709@openwrt.org> User-Agent: Mutt/1.5.24 (2015-08-30) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 51963 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ralf@linux-mips.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Sat, Feb 06, 2016 at 04:40:03PM +0100, John Crispin wrote: > On 06/02/2016 15:24, weiyj_lk@163.com wrote: > > From: Wei Yongjun > > > > In case of error, the function devm_ioremap_resource() returns > > ERR_PTR() and never returns NULL. The NULL test in the return > > value check should be replaced with IS_ERR(). > > > > Signed-off-by: Wei Yongjun > > Hi, > > thanks for the fix. > > Acked-by: John Crispin > > @Ralf: can you merge this via LMO with the next PR please ? > > @mbgg: ignore the patch please it is for the legacy MIPS SoCs Applied. Thanks folks, Ralf