Skip to contentSkip to conversation

rtlwifi: rtl818x: remove redundant check for cck_power > 15

PATCH Hin-Tak Leung 1 participant 1 message Dec 4, 2017 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Hin-Tak Leung

author Acked-by
#1 lore raw

--------------------------------------------

Quoted 9 lines · Colin King

From: Colin Ian King <[email protected]>

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.

Quoted 4 lines

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

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html