diff options
author | Corentin Labbe <clabbe.montjoie@gmail.com> | 2017-09-01 13:56:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-01 10:26:31 -0700 |
commit | b1b123cfb24b19a4e73e55011a5da58d9523b073 (patch) | |
tree | f92cfed96c6c7762a28cbb8e4a2d9919367ab5b7 /drivers/net/phy/mdio-mux.c | |
parent | 2d00cd859c79fb477ead232241808e02b6f468b3 (diff) | |
download | talos-obmc-linux-b1b123cfb24b19a4e73e55011a5da58d9523b073.tar.gz talos-obmc-linux-b1b123cfb24b19a4e73e55011a5da58d9523b073.zip |
net: mdio-mux: Remove unnecessary 'out of memory' message
This patch fix checkpatch warning about unnecessary 'out of memory'
message.
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/mdio-mux.c')
-rw-r--r-- | drivers/net/phy/mdio-mux.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/phy/mdio-mux.c b/drivers/net/phy/mdio-mux.c index b18ad7082b88..5e08e89465c5 100644 --- 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; |