Commit 7774318b authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: c101: replace comparison to NULL with "!card"

According to the chackpatch.pl, comparison to NULL could
be written "!card".
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4f7d2247
...@@ -307,7 +307,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase) ...@@ -307,7 +307,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)
} }
card = kzalloc(sizeof(card_t), GFP_KERNEL); card = kzalloc(sizeof(card_t), GFP_KERNEL);
if (card == NULL) if (!card)
return -ENOBUFS; return -ENOBUFS;
card->dev = alloc_hdlcdev(card); card->dev = alloc_hdlcdev(card);
...@@ -381,7 +381,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase) ...@@ -381,7 +381,7 @@ static int __init c101_run(unsigned long irq, unsigned long winbase)
static int __init c101_init(void) static int __init c101_init(void)
{ {
if (hw == NULL) { if (!hw) {
#ifdef MODULE #ifdef MODULE
pr_info("no card initialized\n"); pr_info("no card initialized\n");
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment