summaryrefslogtreecommitdiffstats
path: root/drivers/phy/tegra
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-23 12:10:47 +0100
committerKishon Vijay Abraham I <kishon@ti.com>2018-02-21 07:24:33 +0100
commita0dd6773038f3fd2bd1b4f7ec193887cffc49046 (patch)
tree0949a8e41edb7a29be1831d48d62effbb0b0dbd3 /drivers/phy/tegra
parentLinux 4.16-rc1 (diff)
downloadlinux-a0dd6773038f3fd2bd1b4f7ec193887cffc49046.tar.xz
linux-a0dd6773038f3fd2bd1b4f7ec193887cffc49046.zip
phy: tegra: remove redundant self assignment of 'map'
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>
Diffstat (limited to 'drivers/phy/tegra')
-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 63e916d4d069..11aa5902a9ac 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;