Skip to content

Commit a12c1e7

Browse files
emuslndavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Shannon Nelson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4554341 commit a12c1e7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/pensando/ionic/ionic_txrx.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ static int ionic_rx_page_alloc(struct ionic_queue *q,
135135
dev = q->dev;
136136
stats = q_to_rx_stats(q);
137137

138-
if (unlikely(!buf_info)) {
139-
net_err_ratelimited("%s: %s invalid buf_info in alloc\n",
140-
dev_name(dev), q->name);
141-
return -EINVAL;
142-
}
143-
144138
page = alloc_pages(IONIC_PAGE_GFP_MASK, 0);
145139
if (unlikely(!page)) {
146140
net_err_ratelimited("%s: %s page alloc failed\n",

0 commit comments

Comments
 (0)