diff options
author | Joe Perches <joe@perches.com> | 2013-02-03 18:28:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-04 19:22:35 +0100 |
commit | e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86 (patch) | |
tree | 139ba4fc12ad7de52a247f2d66b41e364edb1aa3 /drivers/net/hamradio | |
parent | wireless: Remove unnecessary alloc/OOM messages, alloc cleanups (diff) | |
download | linux-e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86.tar.xz linux-e68ed8f0d8f5b0f59c0f1098e37007f4e6c9ef86.zip |
drivers:net:misc: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM
messages and a dump_stack.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r-- | drivers/net/hamradio/dmascc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/hamradio/dmascc.c b/drivers/net/hamradio/dmascc.c index ce555d9ac02c..6636022a1027 100644 --- a/drivers/net/hamradio/dmascc.c +++ b/drivers/net/hamradio/dmascc.c @@ -463,13 +463,8 @@ static int __init setup_adapter(int card_base, int type, int n) /* Initialize what is necessary for write_scc and write_scc_data */ info = kzalloc(sizeof(struct scc_info), GFP_KERNEL | GFP_DMA); - if (!info) { - printk(KERN_ERR "dmascc: " - "could not allocate memory for %s at %#3x\n", - hw[type].name, card_base); + if (!info) goto out; - } - info->dev[0] = alloc_netdev(0, "", dev_setup); if (!info->dev[0]) { |