mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
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>
This commit is contained in:
parent
c639b9fbe3
commit
c4b5eb8c01
@ -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, ®);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user