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:
2d00cd8
)
net: mdio-mux: Remove unnecessary 'out of memory' message
author
Corentin Labbe
<
[email protected]
>
Fri, 1 Sep 2017 11:56:01 +0000
(13:56 +0200)
committer
David S. Miller
<
[email protected]
>
Fri, 1 Sep 2017 17:26:31 +0000
(10:26 -0700)
This patch fix checkpatch warning about unnecessary 'out of memory'
message.
Signed-off-by: Corentin Labbe <
[email protected]
>
Reviewed-by: Andrew Lunn <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/phy/mdio-mux.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/mdio-mux.c
b/drivers/net/phy/mdio-mux.c
index b18ad7082b882eb7985b7985f71056314d3576b0..5e08e89465c52e11d3bfc04272a90705da59ce35 100644
(file)
--- a/
drivers/net/phy/mdio-mux.c
+++ b/
drivers/net/phy/mdio-mux.c
@@
-145,9
+145,6
@@
int mdio_mux_init(struct device *dev,
cb = devm_kzalloc(dev, sizeof(*cb), GFP_KERNEL);
if (!cb) {
- dev_err(dev,
- "Error: Failed to allocate memory for child %pOF\n",
- child_bus_node);
ret_val = -ENOMEM;
continue;
}
@@
-156,9
+153,6
@@
int mdio_mux_init(struct device *dev,
cb->mii_bus = mdiobus_alloc();
if (!cb->mii_bus) {
- dev_err(dev,
- "Error: Failed to allocate MDIO bus for child %pOF\n",
- child_bus_node);
ret_val = -ENOMEM;
devm_kfree(dev, cb);
continue;