]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: tegra: remove redundant self assignment of 'map'
authorColin Ian King <colin.king@canonical.com>
Thu, 23 Nov 2017 11:10:47 +0000 (11:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:09 +0000 (10:08 +0100)
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>
drivers/phy/tegra/xusb.c

index 63e916d4d0696156b244fb2c7e0e5f6de606c8e3..11aa5902a9ac1e39a3bb3a4e3b085dbf7a783d19 100644 (file)
@@ -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;