mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -5408,7 +5408,7 @@ int brcms_c_set_channel(struct brcms_c_info *wlc, u16 channel)
|
||||||
{
|
{
|
||||||
u16 chspec = ch20mhz_chspec(channel);
|
u16 chspec = ch20mhz_chspec(channel);
|
||||||
|
|
||||||
if (channel < 0 || channel > MAXCHANNEL)
|
if (channel > MAXCHANNEL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (!brcms_c_valid_chanspec_db(wlc->cmi, chspec))
|
if (!brcms_c_valid_chanspec_db(wlc->cmi, chspec))
|
||||||
|
|
Loading…
Reference in a new issue