Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbbKQKuw (ORCPT ); Tue, 17 Nov 2015 05:50:52 -0500 Received: from mail-oi0-f49.google.com ([209.85.218.49]:36222 "EHLO mail-oi0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752095AbbKQKus (ORCPT ); Tue, 17 Nov 2015 05:50:48 -0500 MIME-Version: 1.0 In-Reply-To: <563B810B.6050401@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <563B810B.6050401@users.sourceforge.net> Date: Tue, 17 Nov 2015 11:50:47 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: Delete unnecessary checks before the function call "pinctrl_unregister" From: Linus Walleij To: SF Markus Elfring Cc: Jon Mason , Ray Jui , Scott Branden , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , bcm-kernel-feedback-list , LKML , kernel-janitors@vger.kernel.org, Julia Lawall Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 767 Lines: 22 On Thu, Nov 5, 2015 at 5:17 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 5 Nov 2015 17:10:22 +0100 > > The pinctrl_unregister() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Patch applied with Ray's Review tag. 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/