ionic: keep stats struct local to error handling
authorShannon Nelson <shannon.nelson@amd.com>
Wed, 6 Mar 2024 23:29:59 +0000 (15:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2024 11:54:35 +0000 (11:54 +0000)
commit2854242d23a7b3a1d6b236da2df9d04b67ac4245
tree0675ca85c5a0adfe1b42da4a57a81d03ee9c42f8
parent56e41ee12d2d63905948dda6934d3298ed6b9310
ionic: keep stats struct local to error handling

When possible, keep the stats struct references strictly
in the error handling blocks and out of the fastpath.

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