ionic: remove unnecessary NULL test
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 6 Mar 2024 23:29:57 +0000 (15:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2024 11:54:34 +0000 (11:54 +0000)
commita12c1e7a6449c39b3dd6ae12bf410281ea79a9ad
tree3e6589db0539e7127d958900c850994743b53dd9
parent4554341dd0ebd2590f8bf9229f5bec261b51c3f6
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>
drivers/net/ethernet/pensando/ionic/ionic_txrx.c