can: dev: can_restart(): convert NULL pointer check
authorMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 27 Aug 2019 19:11:17 +0000 (21:11 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 3 Sep 2019 08:28:13 +0000 (10:28 +0200)
commitf59d7824bfd1cd46a0968b112a2b6ae3f1e1dd8b
treea3bda71b811e3cee9ffe5b7d029d13e4f8a5aba1
parentd726c01aa7448076be8b5162c2a754e2cf68d476
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>
drivers/net/can/dev.c