Skip to content

Commit

Permalink
staging: rtl8192u: fix return statements in r8192U_core.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xenia Ragiadakou authored and Greg Kroah-Hartman committed Jun 5, 2013
1 parent b1753c4 commit 2c7c0c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/rtl8192u/r8192U_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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 */

Expand All @@ -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:
Expand Down

0 comments on commit 2c7c0c3

Please sign in to comment.