Commit 37bc6c72 authored by Austin Kim's avatar Austin Kim Committed by Kalle Valo
Browse files

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: default avatarAustin Kim <austindh.kim@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent bb7e6d85
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))