From bcf636d126277e60258183d42edfbffeed605f6e Mon Sep 17 00:00:00 2001 From: Dulshani Gunawardhana Date: Wed, 22 May 2013 23:30:45 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/cxt1e1/comet.c | 2 +- drivers/staging/cxt1e1/functions.c | 4 ++-- drivers/staging/cxt1e1/pmcc4_drv.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/cxt1e1/comet.c b/drivers/staging/cxt1e1/comet.c index a3da24d89219..fabfd779c668 100644 --- a/drivers/staging/cxt1e1/comet.c +++ b/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, diff --git a/drivers/staging/cxt1e1/functions.c b/drivers/staging/cxt1e1/functions.c index 1f2876f362d2..6167dc574577 100644 --- a/drivers/staging/cxt1e1/functions.c +++ b/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) diff --git a/drivers/staging/cxt1e1/pmcc4_drv.c b/drivers/staging/cxt1e1/pmcc4_drv.c index 772dd211fa6d..32d7a216a419 100644 --- a/drivers/staging/cxt1e1/pmcc4_drv.c +++ b/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 ***/ -- 2.20.1