Staging/cxt1e1:Removing parantheses surrounding return argument
authorDulshani Gunawardhana <dulshani.gunawardhana89@gmail.com>
Wed, 22 May 2013 18:00:45 +0000 (23:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2013 22:28:30 +0000 (15:28 -0700)
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>
drivers/staging/cxt1e1/comet.c
drivers/staging/cxt1e1/functions.c
drivers/staging/cxt1e1/pmcc4_drv.c

index a3da24d89219bda916c9d423095dc3bfff8431cf..fabfd779c668148c545dfe96f9d45b6d4545603a 100644 (file)
@@ -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,
index 1f2876f362d25e6cb6ca6ff5db11165090b26b43..6167dc5745778f1a584daf6105d843bcfb15f1e9 100644 (file)
@@ -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)
index 772dd211fa6d2061f3b3b110e67225661ce78b89..32d7a216a41922fc43ae83c4d1f0c37ac0b0b339 100644 (file)
@@ -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 ***/