mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
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>
This commit is contained in:
parent
d726c01aa7
commit
f59d7824bf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue