]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
e1000: Remove unnecessary k.alloc/v.alloc OOM messages
authorJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 03:29:59 +0000 (11:29 +0800)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 03:29:59 +0000 (11:29 +0800)
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000/e1000_main.c

index 65fb7cb4cafc941913818001b922257cd1bb514f..4cbbc1478b1388e48e49eba2ca1384da7169b7ea 100644 (file)
@@ -729,10 +729,8 @@ static void e1000_dump_eeprom(struct e1000_adapter *adapter)
        eeprom.offset = 0;
 
        data = kmalloc(eeprom.len, GFP_KERNEL);
-       if (!data) {
-               pr_err("Unable to allocate memory to dump EEPROM data\n");
+       if (!data)
                return;
-       }
 
        ops->get_eeprom(netdev, &eeprom, data);