diff options
| author | Peng Li <[email protected]> | 2021-06-09 09:39:53 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-06-09 21:02:58 +0000 |
| commit | d49859601d72baef143703c6944a4e41921f7e6e (patch) | |
| tree | 371eb80b48dcd165c9b52d0882378a219fa5e01e /drivers/net/wan/lapbether.c | |
| parent | net: lapbether: fix the comments style issue (diff) | |
| download | kernel-d49859601d72baef143703c6944a4e41921f7e6e.tar.gz kernel-d49859601d72baef143703c6944a4e41921f7e6e.zip | |
net: lapbether: replace comparison to NULL with "lapbeth_get_x25_dev"
According to the chackpatch.pl, comparison to NULL could
be written "lapbeth_get_x25_dev".
Signed-off-by: Peng Li <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
| -rw-r--r-- | drivers/net/wan/lapbether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/lapbether.c b/drivers/net/wan/lapbether.c index 60628aa40d10..74694af7eb38 100644 --- a/drivers/net/wan/lapbether.c +++ b/drivers/net/wan/lapbether.c @@ -451,7 +451,7 @@ static int lapbeth_device_event(struct notifier_block *this, switch (event) { case NETDEV_UP: /* New ethernet device -> new LAPB interface */ - if (lapbeth_get_x25_dev(dev) == NULL) + if (!lapbeth_get_x25_dev(dev)) lapbeth_new_device(dev); break; case NETDEV_GOING_DOWN: |
