diff options
author | Shannon Nelson <shannon.nelson@amd.com> | 2024-03-07 02:29:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-03-08 14:54:34 +0300 |
commit | a12c1e7a6449c39b3dd6ae12bf410281ea79a9ad (patch) | |
tree | 3e6589db0539e7127d958900c850994743b53dd9 /drivers | |
parent | 4554341dd0ebd2590f8bf9229f5bec261b51c3f6 (diff) | |
download | linux-a12c1e7a6449c39b3dd6ae12bf410281ea79a9ad.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/pensando/ionic/ionic_txrx.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c index af414707d614..3bb3534b3d25 100644 --- a/drivers/net/ethernet/pensando/ionic/ionic_txrx.c +++ b/drivers/net/ethernet/pensando/ionic/ionic_txrx.c @@ -135,12 +135,6 @@ static int ionic_rx_page_alloc(struct ionic_queue *q, dev = q->dev; 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); if (unlikely(!page)) { net_err_ratelimited("%s: %s page alloc failed\n", |