summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-23 11:10:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-02-27 10:07:03 +0100
commitffd36a6801880a1f42ca769327fd9ff30f25e577 (patch)
treea3ae738fd50f345b2f2c86e4034c2c5ee9af1e66
parent87e964d19fdb95867eb05525bed8594f4de84e2b (diff)
downloadlinux-stable-ffd36a6801880a1f42ca769327fd9ff30f25e577.tar.gz
linux-stable-ffd36a6801880a1f42ca769327fd9ff30f25e577.tar.bz2
linux-stable-ffd36a6801880a1f42ca769327fd9ff30f25e577.zip
phy: tegra: remove redundant self assignment of 'map'
commit a0dd6773038f3fd2bd1b4f7ec193887cffc49046 upstream. The assignment of map to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Cc: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/phy/tegra/xusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 873424ab0e32..bd0e65900216 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)
continue;