]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
bnx2x: drop redundant error message about allocation failure
authorMichal Schmidt <mschmidt@redhat.com>
Fri, 4 Dec 2015 16:22:34 +0000 (17:22 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 8 Jul 2016 02:28:35 +0000 (19:28 -0700)
alloc_pages() already prints a warning when it fails. No need to emit
another message. Certainly not at KERN_ERR level, because it is no big
deal if this GFP_ATOMIC allocation fails occasionally.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Orabug: 23718192
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c

index 80d23226d9e41a121bf181e275b33146014d4526..37118439a36d80e9db08a69968420c305ddb8704 100644 (file)
@@ -560,10 +560,8 @@ static int bnx2x_alloc_rx_sge(struct bnx2x *bp, struct bnx2x_fastpath *fp,
                        put_page(pool->page);
 
                pool->page = alloc_pages(gfp_mask, PAGES_PER_SGE_SHIFT);
-               if (unlikely(!pool->page)) {
-                       BNX2X_ERR("Can't alloc sge\n");
+               if (unlikely(!pool->page))
                        return -ENOMEM;
-               }
 
                pool->offset = 0;
        }