summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-06-04 20:32:27 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-05 22:37:21 (GMT)
commit2c7c0c347ca9ede6b4993c590a559fbc34f7efe9 (patch)
tree55321f5d2de9a7cd970e350856ab0e97579b1779 /drivers
parentb1753c43b0a7b1b58fdd27acb3ce167a97a5b718 (diff)
downloadlinux-fsl-qoriq-2c7c0c347ca9ede6b4993c590a559fbc34f7efe9.tar.xz
staging: rtl8192u: fix return statements in r8192U_core.c
This patch fixes the following checkpatch error: ERROR: return is not a function, parentheses are not required Also, fixes the spaces in return statements to improve code readability. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8192u/r8192U_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index 07601b9..1b67bb1 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -1083,7 +1083,7 @@ void rtl8192_try_wake_queue(struct net_device *dev, int pri);
u16 DrvAggr_PaddingAdd(struct net_device *dev, struct sk_buff *skb)
{
u16 PaddingNum = 256 - ((skb->len + TX_PACKET_DRVAGGR_SUBFRAME_SHIFT_BYTES) % 256);
- return (PaddingNum&0xff);
+ return PaddingNum & 0xff;
}
u8 MRateToHwRate8190Pci(u8 rate);
@@ -4174,7 +4174,7 @@ static u8 rtl819x_query_rxpwrpercentage(char antpower)
else if (antpower >= 0)
return 100;
else
- return (100+antpower);
+ return 100 + antpower;
} /* QueryRxPwrPercentage */
@@ -4192,7 +4192,7 @@ static u8 rtl819x_evm_dbtopercentage(char value)
ret_val *= 3;
if (ret_val == 99)
ret_val = 100;
- return(ret_val);
+ return ret_val;
}
//
// Description: