mirror of https://gitee.com/openkylin/linux.git
Staging: rtl8192e: Remove redundant brackets around return values
Signed-off-by: Mike McCormack <mikem@ring3k.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
1e0f9ac07c
commit
c6eae67748
|
@ -5610,7 +5610,7 @@ rtl819x_evm_dbtopercentage(
|
|||
ret_val*=3;
|
||||
if(ret_val == 99)
|
||||
ret_val = 100;
|
||||
return(ret_val);
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -6928,7 +6928,7 @@ bool NicIFEnableNIC(struct net_device* dev)
|
|||
rtl8192_irq_enable(dev);
|
||||
priv->bdisable_nic = false;
|
||||
//RT_TRACE(COMP_PS,"<===========%s()\n",__FUNCTION__);
|
||||
return (init_status == RT_STATUS_SUCCESS) ? true:false;
|
||||
return (init_status == RT_STATUS_SUCCESS);
|
||||
}
|
||||
bool NicIFDisableNIC(struct net_device* dev)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
int rtl8192E_save_state (struct pci_dev *dev, pm_message_t state)
|
||||
{
|
||||
printk(KERN_NOTICE "r8192E save state call (state %u).\n", state.event);
|
||||
return(-EAGAIN);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
|
||||
|
@ -166,5 +166,5 @@ int rtl8192E_enable_wake (struct pci_dev *dev, pm_message_t state, int enable)
|
|||
{
|
||||
printk(KERN_NOTICE "r8192E enable wake call (state %u, enable %d).\n",
|
||||
state.event, enable);
|
||||
return(-EAGAIN);
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
|
|
@ -1495,7 +1495,7 @@ u32 rtl8192_QueryBBReg(struct net_device* dev, u32 dwRegAddr, u32 dwBitMask)
|
|||
BitShift = rtl8192_CalculateBitShift(dwBitMask);
|
||||
Ret = (OriginalValue & dwBitMask) >> BitShift;
|
||||
|
||||
return (Ret);
|
||||
return Ret;
|
||||
}
|
||||
/******************************************************************************
|
||||
*function: This function read register from RF chip
|
||||
|
@ -1797,7 +1797,7 @@ u32 rtl8192_phy_QueryRFReg(struct net_device* dev, RF90_RADIO_PATH_E eRFPath, u3
|
|||
Readback_Value = (Original_Value & BitMask) >> BitShift;
|
||||
up(&priv->rf_sem);
|
||||
// udelay(200);
|
||||
return (Readback_Value);
|
||||
return Readback_Value;
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
@ -1853,11 +1853,11 @@ static u32 phy_FwRFSerialRead(
|
|||
udelay(10);
|
||||
}
|
||||
else
|
||||
return (0);
|
||||
return 0;
|
||||
}
|
||||
retValue = read_nic_dword(dev, RF_DATA);
|
||||
|
||||
return (retValue);
|
||||
return retValue;
|
||||
|
||||
} /* phy_FwRFSerialRead */
|
||||
|
||||
|
|
Loading…
Reference in New Issue