Commit 40a0136b authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: vt6655: no braces needed for single statement if , for blocks

there is only one line inside the if and for blocks, so the braces are
not needed
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d1b46e75
...@@ -749,9 +749,9 @@ bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex, ...@@ -749,9 +749,9 @@ bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
unsigned char *pbyChannelNumber, unsigned char *pbyMap) unsigned char *pbyChannelNumber, unsigned char *pbyMap)
{ {
if (uChannelIndex > CB_MAX_CHANNEL) { if (uChannelIndex > CB_MAX_CHANNEL)
return false; return false;
}
*pbyChannelNumber = sChannelTbl[uChannelIndex].byChannelNumber; *pbyChannelNumber = sChannelTbl[uChannelIndex].byChannelNumber;
*pbyMap = sChannelTbl[uChannelIndex].byMAP; *pbyMap = sChannelTbl[uChannelIndex].byMAP;
return sChannelTbl[uChannelIndex].bValid; return sChannelTbl[uChannelIndex].bValid;
...@@ -761,9 +761,9 @@ void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex, ...@@ -761,9 +761,9 @@ void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
unsigned char byMap) unsigned char byMap)
{ {
if (uChannelIndex > CB_MAX_CHANNEL) { if (uChannelIndex > CB_MAX_CHANNEL)
return; return;
}
sChannelTbl[uChannelIndex].byMAP |= byMap; sChannelTbl[uChannelIndex].byMAP |= byMap;
} }
...@@ -771,9 +771,8 @@ void clear_channel_map_info(void *pDeviceHandler) ...@@ -771,9 +771,8 @@ void clear_channel_map_info(void *pDeviceHandler)
{ {
unsigned int ii = 0; unsigned int ii = 0;
for (ii = 1; ii <= CB_MAX_CHANNEL; ii++) { for (ii = 1; ii <= CB_MAX_CHANNEL; ii++)
sChannelTbl[ii].byMAP = 0; sChannelTbl[ii].byMAP = 0;
}
} }
unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType) unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment