projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7928b2c
)
phy: tegra: remove redundant self assignment of 'map'
author
Colin Ian King
<colin.king@canonical.com>
Thu, 23 Nov 2017 11:10:47 +0000
(11:10 +0000)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Wed, 21 Feb 2018 06:24:33 +0000
(11:54 +0530)
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>
drivers/phy/tegra/xusb.c
patch
|
blob
|
history
diff --git
a/drivers/phy/tegra/xusb.c
b/drivers/phy/tegra/xusb.c
index
63e916d
..
11aa590
100644
(file)
--- 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;