LKML Archive on
help / color / mirror / Atom feed
From: Colin King <>
To: Kishon Vijay Abraham I <>,
	Thierry Reding <>,
	Jonathan Hunter <>,
	Arvind Yadav <>,
Subject: [PATCH] phy: tegra: remove redundant self assignment of 'map'
Date: Thu, 23 Nov 2017 11:10:47 +0000	[thread overview]
Message-ID: <> (raw)

From: Colin Ian King <>

The assignment of map to itself is redundant and can be removed.
Detected with Coccinelle.

Signed-off-by: Colin Ian King <>
 drivers/phy/tegra/xusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 4307bf0013e1..bfec91e36be7 100644
--- a/drivers/phy/tegra/xusb.c
+++ b/drivers/phy/tegra/xusb.c
@@ -418,7 +418,7 @@ tegra_xusb_port_find_lane(struct tegra_xusb_port *port,
 	struct tegra_xusb_lane *lane, *match = ERR_PTR(-ENODEV);
-	for (map = map; map->type; map++) {
+	for (; map->type; map++) {
 		if (port->index != map->port)

                 reply	other threads:[~2017-11-23 11:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).