Skip to content

Commit

Permalink
staging: vt6655: no braces needed for single statement if , for blocks
Browse files Browse the repository at this point in the history
there is only one line inside the if and for blocks, so the braces are
not needed

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jan 17, 2013
1 parent d1b46e7 commit 40a0136
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/staging/vt6655/channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,9 +749,9 @@ bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
unsigned char *pbyChannelNumber, unsigned char *pbyMap)
{

if (uChannelIndex > CB_MAX_CHANNEL) {
if (uChannelIndex > CB_MAX_CHANNEL)
return false;
}

*pbyChannelNumber = sChannelTbl[uChannelIndex].byChannelNumber;
*pbyMap = sChannelTbl[uChannelIndex].byMAP;
return sChannelTbl[uChannelIndex].bValid;
Expand All @@ -761,19 +761,18 @@ void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
unsigned char byMap)
{

if (uChannelIndex > CB_MAX_CHANNEL) {
if (uChannelIndex > CB_MAX_CHANNEL)
return;
}

sChannelTbl[uChannelIndex].byMAP |= byMap;
}

void clear_channel_map_info(void *pDeviceHandler)
{
unsigned int ii = 0;

for (ii = 1; ii <= CB_MAX_CHANNEL; ii++) {
for (ii = 1; ii <= CB_MAX_CHANNEL; ii++)
sChannelTbl[ii].byMAP = 0;
}
}

unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType)
Expand Down

0 comments on commit 40a0136

Please sign in to comment.