brcmsmac: Remove always false 'channel < 0' statement
As 'channel' is declared as u16, the following expression is always false. channel < 0 So we can remove unnecessary 'always false' statement. Signed-off-by: Austin Kim <austindh.kim@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
bb7e6d8553
commit
37bc6c72f5
@ -5408,7 +5408,7 @@ int brcms_c_set_channel(struct brcms_c_info *wlc, u16 channel)
|
||||
{
|
||||
u16 chspec = ch20mhz_chspec(channel);
|
||||
|
||||
if (channel < 0 || channel > MAXCHANNEL)
|
||||
if (channel > MAXCHANNEL)
|
||||
return -EINVAL;
|
||||
|
||||
if (!brcms_c_valid_chanspec_db(wlc->cmi, chspec))
|
||||
|
Loading…
x
Reference in New Issue
Block a user