mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
net: mdio-mux: Fix NULL Comparison style
This patch fix checkpatch warning about NULL Comparison style. 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>
This commit is contained in:
parent
c5b2cef3b6
commit
2d00cd859c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user