projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f9893c
)
net: lapbether: replace comparison to NULL with "lapbeth_get_x25_dev"
author
Peng Li
<lipeng321@huawei.com>
Wed, 9 Jun 2021 09:39:53 +0000
(17:39 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 9 Jun 2021 21:02:58 +0000
(14:02 -0700)
According to the chackpatch.pl, comparison to NULL could
be written "lapbeth_get_x25_dev".
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/lapbether.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/lapbether.c
b/drivers/net/wan/lapbether.c
index
60628aa
..
74694af
100644
(file)
--- 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: