1
0
Fork 0

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
Marc Kleine-Budde 2019-08-27 21:11:17 +02:00
parent d726c01aa7
commit f59d7824bf
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}