]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:18:01 +0000 (09:18 +0200)
commit9bee8b4275ece3472b2492892708ac6c1efe4fbf
tree9b86b4c0a3b54939608f244dad56824dc17a7639
parent9b84e83a92cdacd1a768c4de04ec3d9a81b26c12
net: atlantic: reduce scope of is_rsc_complete

[ Upstream commit 79784d77ebbd3ec516b7a5ce555d979fb7946202 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/aquantia/atlantic/aq_ring.c