Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755928Ab3HFKPa (ORCPT ); Tue, 6 Aug 2013 06:15:30 -0400 Received: from mail-ob0-f176.google.com ([209.85.214.176]:64101 "EHLO mail-ob0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755752Ab3HFKP3 (ORCPT ); Tue, 6 Aug 2013 06:15:29 -0400 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 6 Aug 2013 12:15:28 +0200 Message-ID: Subject: Re: [PATCH] ARM: u300: fix return value check in __u300_init_boardpower() From: Linus Walleij To: Wei Yongjun Cc: Russell King - ARM Linux , Grant Likely , Rob Herring , Wei Yongjun , "linux-arm-kernel@lists.infradead.org" , "devicetree-discuss@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 650 Lines: 19 On Thu, Jul 4, 2013 at 3:51 PM, Wei Yongjun wrote: > From: Wei Yongjun > > In case of error, the function syscon_node_to_regmap() 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 Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/