summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-06-19 15:28:37 +0800
committerDavid S. Miller <davem@davemloft.net>2021-06-21 12:37:28 -0700
commit7774318b9e5eb8ecfb42be04d65ff8ac657b5faa (patch)
tree58cc3048ea67e768e2d6ced9d95510cb8a78d93d /drivers/net/wan
parent4f7d2247f839c8cf266662a83238c85ef21ea9c6 (diff)
downloadlinux-stable-7774318b9e5eb8ecfb42be04d65ff8ac657b5faa.tar.gz
linux-stable-7774318b9e5eb8ecfb42be04d65ff8ac657b5faa.tar.bz2
linux-stable-7774318b9e5eb8ecfb42be04d65ff8ac657b5faa.zip
net: c101: replace comparison to NULL with "!card"
According to the chackpatch.pl, comparison to NULL could be written "!card". Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/c101.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/c101.c b/drivers/net/wan/c101.c
index 94b852fa22a1..f33192eb9517 100644
--- a/drivers/net/wan/c101.c
+++ b/drivers/net/wan/c101.c
@@ -307,7 +307,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)
}
card = kzalloc(sizeof(card_t), GFP_KERNEL);
- if (card == NULL)
+ if (!card)
return -ENOBUFS;
card->dev = alloc_hdlcdev(card);
@@ -381,7 +381,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)
static int __init c101_init(void)
{
- if (hw == NULL) {
+ if (!hw) {
#ifdef MODULE
pr_info("no card initialized\n");
#endif