1
0
Fork 0

bnx2x: drop redundant error message about allocation failure

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>
hifive-unleashed-5.1
Michal Schmidt 2015-12-04 17:22:34 +01:00 committed by David S. Miller
parent b618aaa91b
commit 5c9ffde4a0
1 changed files with 1 additions and 3 deletions

View File

@ -558,10 +558,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;
}