aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/n2.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-01-29 07:56:23 -0500
committerDavid S. Miller <davem@davemloft.net>2012-01-31 16:20:21 -0500
commite404decb0fb017be80552adee894b35307b6c7b4 (patch)
tree19b2324328eb1f8cef599f9f164dc9ca6e5699c9 /drivers/net/wan/n2.c
parent5f3d9cb2962967d9d7e03abb4a7ca275a9a3fea5 (diff)
drivers/net: Remove unnecessary k.alloc/v.alloc OOM messages
alloc failures use dump_stack so emitting an additional out-of-memory message is an unnecessary duplication. Remove the allocation failure messages. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/n2.c')
-rw-r--r--drivers/net/wan/n2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wan/n2.c b/drivers/net/wan/n2.c
index 5129ad514d26..315bf09d6a20 100644
--- a/drivers/net/wan/n2.c
+++ b/drivers/net/wan/n2.c
@@ -358,10 +358,8 @@ static int __init n2_run(unsigned long io, unsigned long irq,
358 } 358 }
359 359
360 card = kzalloc(sizeof(card_t), GFP_KERNEL); 360 card = kzalloc(sizeof(card_t), GFP_KERNEL);
361 if (card == NULL) { 361 if (card == NULL)
362 pr_err("unable to allocate memory\n");
363 return -ENOBUFS; 362 return -ENOBUFS;
364 }
365 363
366 card->ports[0].dev = alloc_hdlcdev(&card->ports[0]); 364 card->ports[0].dev = alloc_hdlcdev(&card->ports[0]);
367 card->ports[1].dev = alloc_hdlcdev(&card->ports[1]); 365 card->ports[1].dev = alloc_hdlcdev(&card->ports[1]);