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

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

net: mdio-mux: Fix NULL Comparison style



This patch fix checkpatch warning about NULL Comparison style.

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 c5b2cef3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ int mdio_mux_init(struct device *dev,
	}

	pb = devm_kzalloc(dev, sizeof(*pb), GFP_KERNEL);
	if (pb == NULL) {
	if (!pb) {
		ret_val = -ENOMEM;
		goto err_pb_kz;
	}
@@ -144,7 +144,7 @@ int mdio_mux_init(struct device *dev,
		}

		cb = devm_kzalloc(dev, sizeof(*cb), GFP_KERNEL);
		if (cb == NULL) {
		if (!cb) {
			dev_err(dev,
				"Error: Failed to allocate memory for child %pOF\n",
				child_bus_node);