mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
b618aaa91b
commit
5c9ffde4a0
|
@ -558,10 +558,8 @@ static int bnx2x_alloc_rx_sge(struct bnx2x *bp, struct bnx2x_fastpath *fp,
|
||||||
put_page(pool->page);
|
put_page(pool->page);
|
||||||
|
|
||||||
pool->page = alloc_pages(gfp_mask, PAGES_PER_SGE_SHIFT);
|
pool->page = alloc_pages(gfp_mask, PAGES_PER_SGE_SHIFT);
|
||||||
if (unlikely(!pool->page)) {
|
if (unlikely(!pool->page))
|
||||||
BNX2X_ERR("Can't alloc sge\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
pool->offset = 0;
|
pool->offset = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue