Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a8a4b75 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8192e: add curly braces to if statement



In the original code there was some extra semicolons after the if
statement:
	if (!channel_map[ieee->current_network.channel]);
						       ^^^
>From the indenting it looked like that should be curly braces instead.

Also I made some white space changes to stop checkpatch.pl from
complaining.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f22f99e1
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -527,17 +527,17 @@ void ieee80211_softmac_scan_wq(struct work_struct *work)
	do{
		ieee->current_network.channel =
			(ieee->current_network.channel + 1) % MAX_CHANNEL_NUMBER;
		if (watchdog++ > MAX_CHANNEL_NUMBER)
		{
		//if current channel is not in channel map, set to default channel.
		if (watchdog++ > MAX_CHANNEL_NUMBER) {
			/* if current channel is not in channel map, set to default channel. */
#ifdef ENABLE_DOT11D
      			if (!channel_map[ieee->current_network.channel]);
			if (!channel_map[ieee->current_network.channel]) {
#else
			if (!ieee->channel_map[ieee->current_network.channel]);
			if (!ieee->channel_map[ieee->current_network.channel]) {
#endif
				ieee->current_network.channel = 6;
				goto out; /* no good chans */
			}
		}
#ifdef ENABLE_DOT11D
        }while(!channel_map[ieee->current_network.channel]);
#else