net: mdio-mux: Remove unnecessary 'out of memory' message
authorCorentin Labbe <clabbe.montjoie@gmail.com>
Fri, 1 Sep 2017 11:56:01 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
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 <clabbe.montjoie@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux.c

index b18ad7082b882eb7985b7985f71056314d3576b0..5e08e89465c52e11d3bfc04272a90705da59ce35 100644 (file)
@@ -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;