mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
iwlegacy: 4965-mac: Simplify the calculation of variables
Fix the following coccicheck warnings: ./drivers/net/wireless/intel/iwlegacy/4965-mac.c:2596:54-56: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Acked-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/1612425608-40450-1-git-send-email-jiapeng.chong@linux.alibaba.com
This commit is contained in:
1 parent
cc1546d685
commit
fcb8f3ca4b
1 file changed
+1
-2
@@ -2593,8 +2593,7 @@ out:
|
||||
*/
|
||||
if (ret != IL_INVALID_STATION &&
|
||||
(!(il->stations[ret].used & IL_STA_UCODE_ACTIVE) ||
|
||||
((il->stations[ret].used & IL_STA_UCODE_ACTIVE) &&
|
||||
(il->stations[ret].used & IL_STA_UCODE_INPROGRESS)))) {
|
||||
(il->stations[ret].used & IL_STA_UCODE_INPROGRESS))) {
|
||||
IL_ERR("Requested station info for sta %d before ready.\n",
|
||||
ret);
|
||||
ret = IL_INVALID_STATION;
|
||||
|
||||
Reference in new issue
Block a user