Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp893482ybe; Thu, 5 Sep 2019 07:28:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyEI8lwXpyhyQ+tseV5ixdH1Ecq62n+epWAf1kcTjO9mknHlcyUq85wIlxoJGujYDxTjg2 X-Received: by 2002:aa7:8b01:: with SMTP id f1mr4263686pfd.173.1567693721478; Thu, 05 Sep 2019 07:28:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567693721; cv=none; d=google.com; s=arc-20160816; b=yG6bpeYNGTig0dOsf3PxqozxWLctPgGzisFuIA1+phWNKfFGJVvxal73OhZdf6iWCg myB9lmmKKoMQgbSNduas9OvovDI+kp2GMzu1R+GZpRfxDderGk6/H4GaUtAPzoSUdkgO V8gm7Zvi4DkH15gWKCw6+NQko/6x/eexEg7kThxgs8yB+pTscLE+WPqw/H29mjBY/ZJj qIKuOF0DsjTGCFFCGbtkVP3r6qwiO4gGDCMQ7tPMZYQtN6t+6oe9JAprxrJiNVD35jlI 6oA1WKlS5V+wWqLQjDksAGdplfAzPmlHt73QlFpxkB5G5ykQWIU8BZjo1HskAhA92A2J tqug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Sp05m+CNit5Lx3cGE2by6qBy8ZMJcpetGu1snA86oks=; b=kNesVZ+4RPN7YGXAm+VZ6H0M5UKi8UlRGpcOnIPCnIfKEZcM8VEwvLeSENwI4rBHba YSjeErRX7HCXWXSuLWix54KOUdtKh0VK2KSOHxDv9hIGcGKEZxRpw6gIjSUglPCPLZuU F3q2asMq67zrrN9AJLk8mFw6IM/oLZerM5ltWO9kkL+Pi0HMMGIVuzjXa+Inq2nfqV0L bx1raTGrFAgo5W6dLEH6zlPhvq2wZsq8suyazK5SrpgKZb+C3lS8+echJeo7uXL+zXlJ 46ztWuQXDvRabP0xWMKxV2ywBvVaUcp8Wy/xHqBEVZz3+ByR5AN+iXrozXAhzTWtvRFV +CaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si2089514plo.102.2019.09.05.07.28.25; Thu, 05 Sep 2019 07:28:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728923AbfIEOJX (ORCPT + 99 others); Thu, 5 Sep 2019 10:09:23 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35746 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727914AbfIEOJW (ORCPT ); Thu, 5 Sep 2019 10:09:22 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1i5sRr-0001aJ-Mw; Thu, 05 Sep 2019 14:09:19 +0000 From: Colin King To: Linus Walleij , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: bcm: remove redundant assignment to pointer log Date: Thu, 5 Sep 2019 15:09:19 +0100 Message-Id: <20190905140919.29283-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King The pointer log is being initialized with a value that is never read and is being re-assigned a little later on. The assignment is redundant and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/pinctrl/bcm/pinctrl-cygnus-mux.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c b/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c index 44df35942a43..dcab2204c60c 100644 --- a/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c +++ b/drivers/pinctrl/bcm/pinctrl-cygnus-mux.c @@ -923,7 +923,6 @@ static int cygnus_mux_log_init(struct cygnus_pinctrl *pinctrl) if (!pinctrl->mux_log) return -ENOMEM; - log = pinctrl->mux_log; for (i = 0; i < CYGNUS_NUM_IOMUX_REGS; i++) { for (j = 0; j < CYGNUS_NUM_MUX_PER_REG; j++) { log = &pinctrl->mux_log[i * CYGNUS_NUM_MUX_PER_REG -- 2.20.1