mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
ionic: remove unnecessary NULL test
We call ionic_rx_page_alloc() only on existing buf_info structs from ionic_rx_fill(). There's no need for the additional NULL test. Reviewed-by: Brett Creeley <brett.creeley@amd.com> Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4554341dd0
commit
a12c1e7a64
1 changed files with 0 additions and 6 deletions
|
@ -135,12 +135,6 @@ static int ionic_rx_page_alloc(struct ionic_queue *q,
|
||||||
dev = q->dev;
|
dev = q->dev;
|
||||||
stats = q_to_rx_stats(q);
|
stats = q_to_rx_stats(q);
|
||||||
|
|
||||||
if (unlikely(!buf_info)) {
|
|
||||||
net_err_ratelimited("%s: %s invalid buf_info in alloc\n",
|
|
||||||
dev_name(dev), q->name);
|
|
||||||
return -EINVAL;
|
|
||||||
}
|
|
||||||
|
|
||||||
page = alloc_pages(IONIC_PAGE_GFP_MASK, 0);
|
page = alloc_pages(IONIC_PAGE_GFP_MASK, 0);
|
||||||
if (unlikely(!page)) {
|
if (unlikely(!page)) {
|
||||||
net_err_ratelimited("%s: %s page alloc failed\n",
|
net_err_ratelimited("%s: %s page alloc failed\n",
|
||||||
|
|
Loading…
Reference in a new issue