Skip to content

Commit

Permalink
phy: tegra: remove redundant self assignment of 'map'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Kishon Vijay Abraham I committed Feb 21, 2018
1 parent 7928b2c commit a0dd677
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 a0dd677

Please sign in to comment.