提交 faec7c97 编写于 作者: A Ana Rey 提交者: Greg Kroah-Hartman

staging: rtl8192u: Delete unnecesary braces in ieee80211/dot11d.c

Delete unnecesary braces and fix coding style these lines when It is
necessary in ieee80211/dot11d.c

Fix checkpatch.pl errors:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: NAna Rey <anarey@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0d86eba5
...@@ -28,12 +28,11 @@ Dot11d_Reset(struct ieee80211_device *ieee) ...@@ -28,12 +28,11 @@ Dot11d_Reset(struct ieee80211_device *ieee)
memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER+1); memset(pDot11dInfo->channel_map, 0, MAX_CHANNEL_NUMBER+1);
memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1); memset(pDot11dInfo->MaxTxPwrDbmList, 0xFF, MAX_CHANNEL_NUMBER+1);
/* Set new channel map */ /* Set new channel map */
for (i=1; i<=11; i++) { for (i = 1; i <= 11; i++)
(pDot11dInfo->channel_map)[i] = 1; (pDot11dInfo->channel_map)[i] = 1;
}
for (i=12; i<=14; i++) { for (i = 12; i <= 14; i++)
(pDot11dInfo->channel_map)[i] = 2; (pDot11dInfo->channel_map)[i] = 2;
}
pDot11dInfo->State = DOT11D_STATE_NONE; pDot11dInfo->State = DOT11D_STATE_NONE;
pDot11dInfo->CountryIeLen = 0; pDot11dInfo->CountryIeLen = 0;
...@@ -117,9 +116,8 @@ DOT11D_GetMaxTxPwrInDbm( ...@@ -117,9 +116,8 @@ DOT11D_GetMaxTxPwrInDbm(
printk("DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n"); printk("DOT11D_GetMaxTxPwrInDbm(): Invalid Channel\n");
return MaxTxPwrInDbm; return MaxTxPwrInDbm;
} }
if (pDot11dInfo->channel_map[Channel]) { if (pDot11dInfo->channel_map[Channel])
MaxTxPwrInDbm = pDot11dInfo->MaxTxPwrDbmList[Channel]; MaxTxPwrInDbm = pDot11dInfo->MaxTxPwrDbmList[Channel];
}
return MaxTxPwrInDbm; return MaxTxPwrInDbm;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册