Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1b123cf authored by Corentin Labbe's avatar Corentin Labbe Committed by David S. Miller
Browse files

net: mdio-mux: Remove unnecessary 'out of memory' message



This patch fix checkpatch warning about unnecessary 'out of memory'
message.

Signed-off-by: default avatarCorentin Labbe <clabbe.montjoie@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d00cd85
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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;