drivers/net: Remove alloc_etherdev error messages
authorJoe Perches <joe@perches.com>
Sun, 29 Jan 2012 13:47:52 +0000 (13:47 +0000)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Wed, 22 Feb 2012 18:17:49 +0000 (02:17 +0800)
alloc_etherdev has a generic OOM/unable to alloc message.
Remove the duplicative messages after alloc_etherdev calls.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
jme.c

diff --git a/jme.c b/jme.c
index 7f2f590..904dadb 100644 (file)
--- a/jme.c
+++ b/jme.c
@@ -2999,7 +2999,6 @@ jme_init_one(struct pci_dev *pdev,
         */
        netdev = alloc_etherdev(sizeof(*jme));
        if (!netdev) {
-               pr_err("Cannot allocate netdev structure\n");
                rc = -ENOMEM;
                goto err_out_release_regions;
        }