Re: rtlwifi: rtl818x: remove redundant check for cck_power > 15

From
Kalle Valo <hidden>
Date
2017-12-07 13:16:37
Also in
kernel-janitors, linux-wireless, lkml
Reply to
Colin King, 2017-11-14
Colin Ian King [off-list ref] wrote:
From: Colin Ian King <redacted>

cck_poweri cannot be greated than 15 as is derived from the bottom 4 bits
from riv->channels[channel - 1].hw_value & 0xf.  Hence the check for it
being greater than 15 is redundant and can be removed.

Detected by CoverityScan, CID#744303 ("Logically dead code")

Signed-off-by: Colin Ian King <redacted>
Patch applied to wireless-drivers-next.git, thanks.

45d9d1a12efa rtlwifi: rtl818x: remove redundant check for cck_power > 15

-- 
https://patchwork.kernel.org/patch/10057925/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Thread (2 messages) 2 messages, 2 authors, last reply 2017-12-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help