]> git.baikalelectronics.ru Git - kernel.git/commit
net: atlantic: reduce scope of is_rsc_complete
authorGrant Grundler <grundler@chromium.org>
Tue, 10 May 2022 02:28:24 +0000 (19:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:25:07 +0000 (12:25 +0100)
commit2c6c5d0bc6bb9cf5bc10fb2b78efa75434adc1df
treef22fec681f68b87219239177ae184bd90a2a119e
parent866e823cb6225382db0bf759960fc4a6d4b67877
net: atlantic: reduce scope of is_rsc_complete

Don't defer handling the err case outside the loop. That's pointless.

And since is_rsc_complete is only used inside this loop, declare
it inside the loop to reduce it's scope.

Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c