提交 3a90d818 编写于 作者: M Michael Straube 提交者: Greg Kroah-Hartman

staging: rtl8188eu: use compound assignment operators

Use compound assignment operators to simplify the code and clear
missing spaces around operators checkpatch issues.
Signed-off-by: NMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20200629161255.28371-1-straube.linux@gmail.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 be124778
......@@ -211,7 +211,7 @@ static char *translate_scan(struct adapter *padapter,
else/* default MCS7 */
max_rate = (bw_40MHz) ? ((short_GI) ? 150 : 135) : ((short_GI) ? 72 : 65);
max_rate = max_rate*2;/* Mbps/2; */
max_rate *= 2; /* Mbps/2; */
}
iwe.cmd = SIOCGIWRATE;
......@@ -1395,7 +1395,7 @@ static int rtw_wx_set_rate(struct net_device *dev,
ratevalue = 11;
goto set_rate;
}
target_rate = target_rate/100000;
target_rate /= 100000;
switch (target_rate) {
case 10:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册