Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dulshani Gunawardhana and committed by
Greg Kroah-Hartman
bcf636d1 ee1803cf

+6 -6
+1 -1
drivers/staging/cxt1e1/comet.c
··· 62 62 lbo = CFG_LBO_E120; 63 63 } 64 64 /* make index ZERO relative */ 65 - return (lbo - 1); 65 + return lbo - 1; 66 66 } 67 67 68 68 void init_comet(void *ci, comet_t *comet, u_int32_t port_mode, int clockmaster,
+2 -2
drivers/staging/cxt1e1/functions.c
··· 202 202 { 203 203 struct net_device *ndev = (struct net_device *) user; 204 204 205 - return (netif_carrier_ok (ndev)); 205 + return netif_carrier_ok (ndev); 206 206 } 207 207 208 208 void ··· 246 246 { 247 247 struct net_device *ndev = (struct net_device *) user; 248 248 249 - return (netif_queue_stopped (ndev)); 249 + return netif_queue_stopped (ndev); 250 250 } 251 251 252 252 void sd_recv_consume(void *token, size_t len, void *user)
+3 -3
drivers/staging/cxt1e1/pmcc4_drv.c
··· 123 123 { 124 124 if ((ch->state != UNASSIGNED) && 125 125 (ch->channum == channum)) 126 - return (ch); 126 + return ch; 127 127 } 128 128 } 129 129 return 0; ··· 942 942 943 943 if ((ret = c4_wq_port_init (pi))) /* create/init 944 944 * workqueue_struct */ 945 - return (ret); 945 + return ret; 946 946 } 947 947 948 948 init_comet (ci, pi->cometbase, pp->port_mode, 1 /* clockmaster == true */ , pp->portP); ··· 1624 1624 } 1625 1625 ci = ci->next; /* next board, if any */ 1626 1626 } 1627 - return (base); 1627 + return base; 1628 1628 } 1629 1629 1630 1630 #endif /*** CONFIG_SBE_PMCC4_NCOMM ***/