Skip to content

Commit

Permalink
Staging: rtl8192e: add curly braces to if statement
Browse files Browse the repository at this point in the history
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: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent f22f99e commit 2a8a4b7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/staging/rtl8192e/ieee80211/ieee80211_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,16 +527,16 @@ 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.
#ifdef ENABLE_DOT11D
if (!channel_map[ieee->current_network.channel]);
#else
if (!ieee->channel_map[ieee->current_network.channel]);
#endif
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]) {
#else
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]);
Expand Down

0 comments on commit 2a8a4b7

Please sign in to comment.