can: dev: can_restart(): convert NULL pointer check
This patch converts the NULL pointer check in can_restart() form "skb == NULL" to "!skb". Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>alistair/sunxi64-5.4-dsi
parent
d726c01aa7
commit
f59d7824bf
|
@ -552,7 +552,7 @@ static void can_restart(struct net_device *dev)
|
|||
|
||||
/* send restart message upstream */
|
||||
skb = alloc_can_err_skb(dev, &cf);
|
||||
if (skb == NULL) {
|
||||
if (!skb) {
|
||||
err = -ENOMEM;
|
||||
goto restart;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue