summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192u/r819xU_phy.c
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-06-19 01:58:05 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-19 16:41:39 (GMT)
commitc4b5eb8c012499a13e9ec9dcb7331e7040e8d472 (patch)
tree9c64020ca94fd15d445d347be95d896a20c88636 /drivers/staging/rtl8192u/r819xU_phy.c
parentc639b9fbe3e33656c66a62cb52a446181fd1babf (diff)
downloadlinux-c4b5eb8c012499a13e9ec9dcb7331e7040e8d472.tar.xz
staging: rtl8192u: remove variable 'Ret' in r819xU_phy.c
This patch removes variable 'Ret' from rtl8192_QueryBBReg() since its value is returned immediately after it is assigned. The name 'Ret', anyway, does not give any insight and the function description comment is sufficiently informative regarding the returned value. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/r819xU_phy.c')
-rw-r--r--drivers/staging/rtl8192u/r819xU_phy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192u/r819xU_phy.c b/drivers/staging/rtl8192u/r819xU_phy.c
index 387d137..07a178d 100644
--- a/drivers/staging/rtl8192u/r819xU_phy.c
+++ b/drivers/staging/rtl8192u/r819xU_phy.c
@@ -108,13 +108,12 @@ void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask,
* ****************************************************************************/
u32 rtl8192_QueryBBReg(struct net_device *dev, u32 reg_addr, u32 bitmask)
{
- u32 Ret = 0, reg, bitshift;
+ u32 reg, bitshift;
read_nic_dword(dev, reg_addr, &reg);
bitshift = rtl8192_CalculateBitShift(bitmask);
- Ret = (reg & bitmask) >> bitshift;
- return Ret;
+ return (reg & bitmask) >> bitshift;
}
static u32 phy_FwRFSerialRead(struct net_device *dev, RF90_RADIO_PATH_E eRFPath,
u32 offset);