staging: rtl8192u: Fix keyidx assignment within if condition
authorWang Jinchao <wangjinchao600@gmail.com>
Tue, 4 Jul 2023 15:33:09 +0000 (23:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 08:00:02 +0000 (10:00 +0200)
commit5492ed9f8fb07bf42a489fd11199ed3c614d6c71
tree21c475182646d1165720606f862c7781635b01f6
parent405f3d102c465d329195e0046daf8121b4ab9998
staging: rtl8192u: Fix keyidx assignment within if condition

Refactor the if condition into nested conditionals to improve clarity.
The condition is currently in the form of (E1 && E2 && E3), where the
variable keyidx is assigned a value in E3.

Signed-off-by: Wang Jinchao <wangjinchao600@gmail.com>
Link: https://lore.kernel.org/r/ZKQ7tYa9I+PHgef/@fedora
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c