Skip to content

Commit

Permalink
phy: tegra: remove redundant self assignment of 'map'
Browse files Browse the repository at this point in the history
commit a0dd677 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>
  • Loading branch information
Colin Ian King authored and Greg Kroah-Hartman committed Feb 27, 2019
1 parent 87e964d commit ffd36a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/phy/tegra/xusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ffd36a6

Please sign in to comment.