aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-09-23 01:40:09 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-26 21:34:29 -0400
commit807540baae406c84dcb9c1c8ef07a56d2d2ae84a (patch)
treeccd5c2cb57710dd6b73cf8df11eedf67abc14ae4 /drivers/net/irda
parentcb4dfe562cac6fcb544df752e40c1d78000d0712 (diff)
drivers/net: return operator cleanup
Change "return (EXPR);" to "return EXPR;" return is not a function, parentheses are not required. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/donauboe.c4
-rw-r--r--drivers/net/irda/irda-usb.c2
-rw-r--r--drivers/net/irda/nsc-ircc.c2
-rw-r--r--drivers/net/irda/sir_dev.c2
-rw-r--r--drivers/net/irda/smsc-ircc2.c2
-rw-r--r--drivers/net/irda/stir4200.c2
-rw-r--r--drivers/net/irda/via-ircc.h2
-rw-r--r--drivers/net/irda/vlsi_ir.h2
8 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c
index 48bd5ec9f29b..b626cccbccd1 100644
--- a/drivers/net/irda/donauboe.c
+++ b/drivers/net/irda/donauboe.c
@@ -217,7 +217,7 @@ toshoboe_checkfcs (unsigned char *buf, int len)
217 for (i = 0; i < len; ++i) 217 for (i = 0; i < len; ++i)
218 fcs.value = irda_fcs (fcs.value, *(buf++)); 218 fcs.value = irda_fcs (fcs.value, *(buf++));
219 219
220 return (fcs.value == GOOD_FCS); 220 return fcs.value == GOOD_FCS;
221} 221}
222 222
223/***********************************************************************/ 223/***********************************************************************/
@@ -759,7 +759,7 @@ toshoboe_maketestpacket (unsigned char *buf, int badcrc, int fir)
759 if (fir) 759 if (fir)
760 { 760 {
761 memset (buf, 0, TT_LEN); 761 memset (buf, 0, TT_LEN);
762 return (TT_LEN); 762 return TT_LEN;
763 } 763 }
764 764
765 fcs.value = INIT_FCS; 765 fcs.value = INIT_FCS;
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c
index 4441fa3389c2..cce82f101f50 100644
--- a/drivers/net/irda/irda-usb.c
+++ b/drivers/net/irda/irda-usb.c
@@ -1514,7 +1514,7 @@ static inline int irda_usb_parse_endpoints(struct irda_usb_cb *self, struct usb_
1514 IRDA_DEBUG(0, "%s(), And our endpoints are : in=%02X, out=%02X (%d), int=%02X\n", 1514 IRDA_DEBUG(0, "%s(), And our endpoints are : in=%02X, out=%02X (%d), int=%02X\n",
1515 __func__, self->bulk_in_ep, self->bulk_out_ep, self->bulk_out_mtu, self->bulk_int_ep); 1515 __func__, self->bulk_in_ep, self->bulk_out_ep, self->bulk_out_mtu, self->bulk_int_ep);
1516 1516
1517 return((self->bulk_in_ep != 0) && (self->bulk_out_ep != 0)); 1517 return (self->bulk_in_ep != 0) && (self->bulk_out_ep != 0);
1518} 1518}
1519 1519
1520#ifdef IU_DUMP_CLASS_DESC 1520#ifdef IU_DUMP_CLASS_DESC
diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c
index e30cdbb14745..559fe854d76d 100644
--- a/drivers/net/irda/nsc-ircc.c
+++ b/drivers/net/irda/nsc-ircc.c
@@ -1348,7 +1348,7 @@ static __u8 nsc_ircc_change_speed(struct nsc_ircc_cb *self, __u32 speed)
1348 outb(bank, iobase+BSR); 1348 outb(bank, iobase+BSR);
1349 1349
1350 /* Make sure interrupt handlers keep the proper interrupt mask */ 1350 /* Make sure interrupt handlers keep the proper interrupt mask */
1351 return(ier); 1351 return ier;
1352} 1352}
1353 1353
1354/* 1354/*
diff --git a/drivers/net/irda/sir_dev.c b/drivers/net/irda/sir_dev.c
index 1b051dab7b29..39d6e6f15d4f 100644
--- a/drivers/net/irda/sir_dev.c
+++ b/drivers/net/irda/sir_dev.c
@@ -336,7 +336,7 @@ static int sirdev_is_receiving(struct sir_dev *dev)
336 if (!atomic_read(&dev->enable_rx)) 336 if (!atomic_read(&dev->enable_rx))
337 return 0; 337 return 0;
338 338
339 return (dev->rx_buff.state != OUTSIDE_FRAME); 339 return dev->rx_buff.state != OUTSIDE_FRAME;
340} 340}
341 341
342int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type) 342int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type)
diff --git a/drivers/net/irda/smsc-ircc2.c b/drivers/net/irda/smsc-ircc2.c
index 850ca1c5ee19..8c57bfb5f098 100644
--- a/drivers/net/irda/smsc-ircc2.c
+++ b/drivers/net/irda/smsc-ircc2.c
@@ -2051,7 +2051,7 @@ static int smsc_ircc_sir_write(int iobase, int fifo_size, __u8 *buf, int len)
2051 */ 2051 */
2052static int smsc_ircc_is_receiving(struct smsc_ircc_cb *self) 2052static int smsc_ircc_is_receiving(struct smsc_ircc_cb *self)
2053{ 2053{
2054 return (self->rx_buff.state != OUTSIDE_FRAME); 2054 return self->rx_buff.state != OUTSIDE_FRAME;
2055} 2055}
2056 2056
2057 2057
diff --git a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c
index e5698fa30a4f..41c96b3d8152 100644
--- a/drivers/net/irda/stir4200.c
+++ b/drivers/net/irda/stir4200.c
@@ -219,7 +219,7 @@ static inline int read_reg(struct stir_cb *stir, __u16 reg,
219 219
220static inline int isfir(u32 speed) 220static inline int isfir(u32 speed)
221{ 221{
222 return (speed == 4000000); 222 return speed == 4000000;
223} 223}
224 224
225/* 225/*
diff --git a/drivers/net/irda/via-ircc.h b/drivers/net/irda/via-ircc.h
index 5a84822b5a43..c6f58482b769 100644
--- a/drivers/net/irda/via-ircc.h
+++ b/drivers/net/irda/via-ircc.h
@@ -238,7 +238,7 @@ static void WriteLPCReg(int iRegNum, unsigned char iVal)
238 238
239static __u8 ReadReg(unsigned int BaseAddr, int iRegNum) 239static __u8 ReadReg(unsigned int BaseAddr, int iRegNum)
240{ 240{
241 return ((__u8) inb(BaseAddr + iRegNum)); 241 return (__u8) inb(BaseAddr + iRegNum);
242} 242}
243 243
244static void WriteReg(unsigned int BaseAddr, int iRegNum, unsigned char iVal) 244static void WriteReg(unsigned int BaseAddr, int iRegNum, unsigned char iVal)
diff --git a/drivers/net/irda/vlsi_ir.h b/drivers/net/irda/vlsi_ir.h
index 3f24a1f33022..d66fab854bf1 100644
--- a/drivers/net/irda/vlsi_ir.h
+++ b/drivers/net/irda/vlsi_ir.h
@@ -595,7 +595,7 @@ struct ring_descr {
595 595
596static inline int rd_is_active(struct ring_descr *rd) 596static inline int rd_is_active(struct ring_descr *rd)
597{ 597{
598 return ((rd->hw->rd_status & RD_ACTIVE) != 0); 598 return (rd->hw->rd_status & RD_ACTIVE) != 0;
599} 599}
600 600
601static inline void rd_activate(struct ring_descr *rd) 601static inline void rd_activate(struct ring_descr *rd)