mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
staging: rtl8192u: Remove useless return statement
This patch will remove unneeded return statements in code. Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
52dc097758
commit
97f9402a3e
@ -101,7 +101,6 @@ void rtl8192_setBBreg(struct net_device *dev, u32 reg_addr, u32 bitmask,
|
|||||||
} else {
|
} else {
|
||||||
write_nic_dword(dev, reg_addr, data);
|
write_nic_dword(dev, reg_addr, data);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -281,7 +280,6 @@ static void rtl8192_phy_RFSerialWrite(struct net_device *dev,
|
|||||||
priv->RfReg0Value[eRFPath] << 16);
|
priv->RfReg0Value[eRFPath] << 16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -332,7 +330,6 @@ void rtl8192_phy_SetRFReg(struct net_device *dev, RF90_RADIO_PATH_E eRFPath,
|
|||||||
rtl8192_phy_RFSerialWrite(dev, eRFPath, reg_addr, data);
|
rtl8192_phy_RFSerialWrite(dev, eRFPath, reg_addr, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -513,7 +510,6 @@ void rtl8192_phy_configmac(struct net_device *dev)
|
|||||||
rtl8192_setBBreg(dev, pdwArray[i], pdwArray[i+1],
|
rtl8192_setBBreg(dev, pdwArray[i], pdwArray[i+1],
|
||||||
pdwArray[i+2]);
|
pdwArray[i+2]);
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -559,7 +555,6 @@ void rtl8192_phyConfigBB(struct net_device *dev, u8 ConfigType)
|
|||||||
rtl819XAGCTAB_Array[i+1]);
|
rtl819XAGCTAB_Array[i+1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -846,7 +841,6 @@ static void rtl8192_BB_Config_ParaFile(struct net_device *dev)
|
|||||||
priv->bCckHighPower = (u8)rtl8192_QueryBBReg(dev,
|
priv->bCckHighPower = (u8)rtl8192_QueryBBReg(dev,
|
||||||
rFPGA0_XA_HSSIParameter2,
|
rFPGA0_XA_HSSIParameter2,
|
||||||
0x200);
|
0x200);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -864,7 +858,6 @@ void rtl8192_BBConfig(struct net_device *dev)
|
|||||||
* implemented, so use file first.
|
* implemented, so use file first.
|
||||||
* FIXME: should implement it for hardcode? */
|
* FIXME: should implement it for hardcode? */
|
||||||
rtl8192_BB_Config_ParaFile(dev);
|
rtl8192_BB_Config_ParaFile(dev);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -912,8 +905,6 @@ void rtl8192_phy_getTxPower(struct net_device *dev)
|
|||||||
|
|
||||||
/* Read SIFS (save the value read fome MACPHY_REG.txt) */
|
/* Read SIFS (save the value read fome MACPHY_REG.txt) */
|
||||||
read_nic_word(dev, SIFS, &priv->SifsTime);
|
read_nic_word(dev, SIFS, &priv->SifsTime);
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -942,7 +933,6 @@ void rtl8192_phy_setTxPower(struct net_device *dev, u8 channel)
|
|||||||
__func__);
|
__func__);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -963,7 +953,6 @@ void rtl8192_phy_RFConfig(struct net_device *dev)
|
|||||||
RT_TRACE(COMP_ERR, "error chip id\n");
|
RT_TRACE(COMP_ERR, "error chip id\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -974,7 +963,6 @@ void rtl8192_phy_RFConfig(struct net_device *dev)
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
void rtl8192_phy_updateInitGain(struct net_device *dev)
|
void rtl8192_phy_updateInitGain(struct net_device *dev)
|
||||||
{
|
{
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
@ -1094,7 +1082,6 @@ static void rtl8192_SetTxPowerLevel(struct net_device *dev, u8 channel)
|
|||||||
RT_TRACE(COMP_ERR, "unknown rf chip ID in %s()\n", __func__);
|
RT_TRACE(COMP_ERR, "unknown rf chip ID in %s()\n", __func__);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user