Browse Source

Staging/cxt1e1:Removing parantheses surrounding return argument

This patch fixes the error 'return is not a function, parentheses are
not required' that is found by using checkpatch.pi

Signed-off-by: Dulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Dulshani Gunawardhana 12 years ago
parent
commit
bcf636d126

+ 1 - 1
drivers/staging/cxt1e1/comet.c

@@ -62,7 +62,7 @@ lbo_tbl_lkup(int t1, int lbo) {
 			lbo = CFG_LBO_E120;
 	}
 	/* make index ZERO relative */
-	return (lbo - 1);
+	return lbo - 1;
 }
 
 void init_comet(void *ci, comet_t *comet, u_int32_t port_mode, int clockmaster,

+ 2 - 2
drivers/staging/cxt1e1/functions.c

@@ -202,7 +202,7 @@ sd_line_is_ok (void *user)
 {
     struct net_device *ndev = (struct net_device *) user;
 
-    return (netif_carrier_ok (ndev));
+    return netif_carrier_ok (ndev);
 }
 
 void
@@ -246,7 +246,7 @@ sd_queue_stopped (void *user)
 {
     struct net_device *ndev = (struct net_device *) user;
 
-    return (netif_queue_stopped (ndev));
+    return netif_queue_stopped (ndev);
 }
 
 void sd_recv_consume(void *token, size_t len, void *user)

+ 3 - 3
drivers/staging/cxt1e1/pmcc4_drv.c

@@ -123,7 +123,7 @@ c4_find_chan (int channum)
                 {
                     if ((ch->state != UNASSIGNED) &&
                         (ch->channum == channum))
-                        return (ch);
+                        return ch;
                 }
             }
     return 0;
@@ -942,7 +942,7 @@ c4_set_port (ci_t *ci, int portnum)
 
         if ((ret = c4_wq_port_init (pi)))       /* create/init
                                                  * workqueue_struct */
-            return (ret);
+            return ret;
     }
 
     init_comet (ci, pi->cometbase, pp->port_mode, 1 /* clockmaster == true */ , pp->portP);
@@ -1624,7 +1624,7 @@ wanpmcC4T1E1_getBaseAddress (int cardID, int deviceID)
         }
         ci = ci->next;              /* next board, if any */
     }
-    return (base);
+    return base;
 }
 
 #endif                          /*** CONFIG_SBE_PMCC4_NCOMM ***/