Commit 2aea27ba authored by Peng Li's avatar Peng Li Committed by David S. Miller
Browse files

net: wan: 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 avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 69542276
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ static int __init n2_run(unsigned long io, unsigned long irq,
	}

	card = kzalloc(sizeof(card_t), GFP_KERNEL);
	if (card == NULL)
	if (!card)
		return -ENOBUFS;

	card->ports[0].dev = alloc_hdlcdev(&card->ports[0]);
@@ -469,7 +469,7 @@ static int __init n2_run(unsigned long io, unsigned long irq,

static int __init n2_init(void)
{
	if (hw==NULL) {
	if (!hw) {
#ifdef MODULE
		pr_info("no card initialized\n");
#endif