]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: rtl8192e: Remove redundant brackets around return values
authorMike McCormack <mikem@ring3k.org>
Tue, 10 Aug 2010 14:45:23 +0000 (23:45 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 21:55:09 +0000 (14:55 -0700)
Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/r8192E_core.c
drivers/staging/rtl8192e/r8192_pm.c
drivers/staging/rtl8192e/r819xE_phy.c

index 7f962c599c5c3830e16552b16baa06d91948f58e..ac4815d446985ddb7d0db0d05f1eadfe9b795cf1 100644 (file)
@@ -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)
 {
index 994dcbd535afe04d8b59fa61ac1d3809aec2d177..c691bc9d88bb396c64232b0600891cbe15a893e6 100644 (file)
@@ -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;
 }
index e89b241c7d4264840b7296d43918f62e7fc634ab..48e27bb1bf2c19f3f1362916d136cab933db943c 100644 (file)
@@ -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 */