projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f3a1c5
)
of_mdio: mdio_device_create() never returns NULL
author
Sergei Shtylyov
<
[email protected]
>
Sat, 12 Mar 2016 21:33:13 +0000
(
00:33
+0300)
committer
David S. Miller
<
[email protected]
>
Mon, 14 Mar 2016 19:31:58 +0000
(15:31 -0400)
mdio_device_create() never returns NULL, thus checking for it in
of_mdiobus_register_device() is pointless...
Suggested-by: Vladimir Zapolskiy <
[email protected]
>
Signed-off-by: Sergei Shtylyov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/of/of_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/of/of_mdio.c
b/drivers/of/of_mdio.c
index 5e7838290998edb9ec7737b2a6bf2380ebdffbc2..3bc68acac64cf91137a0809764307b2ec9e015f1 100644
(file)
--- a/
drivers/of/of_mdio.c
+++ b/
drivers/of/of_mdio.c
@@
-98,7
+98,7
@@
static int of_mdiobus_register_device(struct mii_bus *mdio,
int rc;
mdiodev = mdio_device_create(mdio, addr);
- if (
!mdiodev ||
IS_ERR(mdiodev))
+ if (IS_ERR(mdiodev))
return 1;
/* Associate the OF node with the device structure so it