Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751640AbaGGTHJ (ORCPT ); Mon, 7 Jul 2014 15:07:09 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:58147 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbaGGTHI (ORCPT ); Mon, 7 Jul 2014 15:07:08 -0400 From: Rickard Strandqvist To: Linus Walleij , linux-kernel@vger.kernel.org Cc: Rickard Strandqvist Subject: [PATCH v2] pinctrl: pinctrl-msm.c: Cleaning up variable that is never used Date: Mon, 7 Jul 2014 21:08:22 +0200 Message-Id: <1404760102-24471-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable ar assigned a value that is never used. I have also removed all the code that thereby serves no purpose. This was found using a static code analysis program called cppcheck Signed-off-by: Rickard Strandqvist --- drivers/pinctrl/pinctrl-msm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-msm.c b/drivers/pinctrl/pinctrl-msm.c index df6dda4c..821c562 100644 --- a/drivers/pinctrl/pinctrl-msm.c +++ b/drivers/pinctrl/pinctrl-msm.c @@ -176,9 +176,6 @@ static void msm_pinmux_disable(struct pinctrl_dev *pctldev, g = &pctrl->soc->groups[group]; - if (WARN_ON(g->mux_bit < 0)) - return; - spin_lock_irqsave(&pctrl->lock, flags); /* Clear the mux bits to select gpio mode */ -- 1.7.10.4 -- 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/