staging: rtl8192e: Remove unnecessary variable
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 31 Oct 2015 14:52:03 +0000 (20:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
This patch removes unnecessary variable by using a single line of code
instead.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

index 0b407feb54073348a3a551506723a4553ea89f54..5e3bbe5c3ca499f63da7566ade3356dbf9d159d4 100644 (file)
@@ -90,13 +90,12 @@ void rtl92e_set_bb_reg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask,
 
 u32 rtl92e_get_bb_reg(struct net_device *dev, u32 dwRegAddr, u32 dwBitMask)
 {
-       u32 Ret = 0, OriginalValue, BitShift;
+       u32 OriginalValue, BitShift;
 
        OriginalValue = rtl92e_readl(dev, dwRegAddr);
        BitShift = _rtl92e_calculate_bit_shift(dwBitMask);
-       Ret = (OriginalValue & dwBitMask) >> BitShift;
 
-       return Ret;
+       return (OriginalValue & dwBitMask) >> BitShift;
 }
 
 static u32 _rtl92e_phy_rf_read(struct net_device *dev,
This page took 0.03393 seconds and 5 git commands to generate.