rsi: Clean up loop in the interrupt handler
authorMarek Vasut <marex@denx.de>
Tue, 3 Nov 2020 18:09:41 +0000 (19:09 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 10 Nov 2020 18:55:06 +0000 (20:55 +0200)
commitabd131a19f6b862dac3eacba153e472ffc96b8f7
tree9a30e1ac8aa26cab0576dfc64bd68d6fa645297b
parent287431463e786766e05e4dc26d0a11d5f8ac8815
rsi: Clean up loop in the interrupt handler

The inner do { ... } while loop is completely useless, all it does
is iterate over a switch-case statement, one bit at a time. This
can easily be replaced by simple if (status & bit) { ... } tests
for each bit. No functional change.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Angus Ainslie <angus@akkea.ca>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Martin Kepplinger <martink@posteo.de>
Cc: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Cc: Siva Rebbagondla <siva8118@gmail.com>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201103180941.443528-2-marex@denx.de
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c