Commit a8e1afcc authored by Fabian Wolff's avatar Fabian Wolff Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: wifi_regd.c: remove superfluous braces



This patch removes unnecessary braces in an if/else-construct, thereby
fixing both a checkpatch.pl warning about superfluous braces and an
error about an ill-placed closing brace preceding the "else" keyword.

Signed-off-by: default avatarFabian Wolff <fabian.wolff@fau.de>
Signed-off-by: default avatarMate Horvath <horvatmate@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dae24da6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -96,15 +96,13 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)

		ch = ieee80211_get_channel(wiphy, freq);
		if (ch) {
			if (channel_set[i].ScanType == SCAN_PASSIVE) {
			if (channel_set[i].ScanType == SCAN_PASSIVE)
				ch->flags = IEEE80211_CHAN_NO_IR;
			}
			else {
			else
				ch->flags = 0;
		}
	}
}
}

static int _rtw_reg_notifier_apply(struct wiphy *wiphy,
				   struct regulatory_request *request,