Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1353402ybe; Thu, 5 Sep 2019 14:18:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4CA/IXhcLMeuN5BpTsxhVXxLwY3JziotDdVjRz/geJjYzNf7vXTKsS7joVvOaPEYHfBRU X-Received: by 2002:aa7:8481:: with SMTP id u1mr6520671pfn.3.1567718289319; Thu, 05 Sep 2019 14:18:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567718289; cv=none; d=google.com; s=arc-20160816; b=nRRHM+dJRoe6dmaFuZ9RWObRAubcZc+Pz6DjefkK6ztLECV8+ww0uhYy7bLWgEmHJt dFkeXtL9YQwA4XPjKBlYev3BalYBWd9Nw7n3Sd90DbDfptwyxgYamYUysa9WhCYf++EK urx95f+cis+60MLNBYoCaq9OpJSqKug4BzviEljMMNb/eXSqU5i019RsRUobLGTVHUWg W4QlGwx7nFSqE3kcbzuB2idZuu9Gh9GbsrQ7lCiIQrlcgIUUlIrAw7et0ChLd2VA9iQX 4u5q+PN4nYajliAj9i6xt+D6B0ODVY9FTp541rJyd9FujVOEP8yRZDY/aLMXM6Vxd6AU aYrw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=L9WHyJ99KP39xuH8ZsBbeD/D63ObFkXNBLywQqZYCeQ=; b=m+uljxasnjgKAey334rfJ7hnuy+M23vxFf6uWVisrUZYPA97KvTm/E7TF8ZD33PTSp khKrknZ0U5AjVgxdCtgdwoHCdsVcR8qwQb0Ow+BLPQtqh5qpL7hnE1bRbsgLGSWYtBFc goFbHMRWsGYUD+QN6ryryjs9Z0+bE+iynEWA3iB7BHmJ+UN9JPJpXEBxBZjgO4HQXrsS lF8DcnYtae1PYKm6rtKd7u7rUfybsMAFf1YOXGMX8r8997tjRg57dD5hYEG+pcZ9Cooa 2p2EdSxEmJtr+f/5YAiAhhCEylvL2uRBfaSvhAcJmGj5saRYcLQNRq38L+607Uo3X8z0 AYIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=IcLjJF6D; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r11si3180779pls.183.2019.09.05.14.17.53; Thu, 05 Sep 2019 14:18:09 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=IcLjJF6D; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389847AbfIEQqx (ORCPT + 99 others); Thu, 5 Sep 2019 12:46:53 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33790 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389741AbfIEQqv (ORCPT ); Thu, 5 Sep 2019 12:46:51 -0400 Received: by mail-pg1-f194.google.com with SMTP id n190so1738248pgn.0 for ; Thu, 05 Sep 2019 09:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=L9WHyJ99KP39xuH8ZsBbeD/D63ObFkXNBLywQqZYCeQ=; b=IcLjJF6Drj/jNnHL/b3X6MBESCOo9YBQ726xZEEEmWRXc8xz/NMkPi5oQm1CTl46ju 10h5rfJrJmPahQG5I7wfMHm3Fmn2auuA4hO62jagzIOVh3dGJ1gcyIxA2phxbSqlEL8c 65/MGCgUUJ5lOBWoETWECotdK7cREeFHnQuuE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=L9WHyJ99KP39xuH8ZsBbeD/D63ObFkXNBLywQqZYCeQ=; b=fwCUBGZgKGpzQROwQSHEwnp2FVftCJggyBxJ94VXTN3/flSUfpDSB60d/9E3KHgEYd PtiY96IUd1yqujDtlnnihl4gWYSKEPUcxgXaZCc6kh8mvcwUkYQlfnpAc2Cmt8TIEm9k X2KOpuG4LJJA4Ro+Ki0etbzPX4PDHPddhudHqJhdU14af1AV1UVita5k7vxXpQo9QFcE tVCFmmxeXJMO0KMkLqgascQMflt1yMptIJEiNg8hGKYxyo0jG+k5hJ853jJHDxKc9QKk VzD8rXXg6DxdsHoAy1f9yLZ/m2zNB3s7n3pPrejJCHy1dal9nPaIOZZBjL28BupvFAH8 ww1Q== X-Gm-Message-State: APjAAAUijfrtuU9zd2ohzwe8QzOuu/i8lD2Pw+MMwIDAl9AeWknO6+2R IXsDrBfHPVh9lGzeyrcuMJ+/UgxH2XXkdiAj/pF24vmu3BJkgcVh2Qc02SzdrlX6LaY4Th+O6YU Y8jR/PithsFC6wxv0SjI92rIr9J7z2K8CZ4C1PmHMf1Laky287mbLb9Lm92Nbwbx7MpdTklKklb lmZrc= X-Received: by 2002:a65:620a:: with SMTP id d10mr4029784pgv.8.1567702010015; Thu, 05 Sep 2019 09:46:50 -0700 (PDT) Received: from rj-aorus.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id x11sm7683567pja.3.2019.09.05.09.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 09:46:49 -0700 (PDT) Subject: Re: [PATCH] pinctrl: bcm: remove redundant assignment to pointer log To: Colin King , 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 References: <20190905140919.29283-1-colin.king@canonical.com> From: Ray Jui Message-ID: <190fef22-fe90-dfa0-0943-4d30b10b6b1d@broadcom.com> Date: Thu, 5 Sep 2019 09:46:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190905140919.29283-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/5/19 7:09 AM, Colin King wrote: > 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; Yes, this indeed looks completely redundant. > 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 > Change looks good to me. Thanks! Reviewed-by: Ray Jui