aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/eth16i.c
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/eth16i.c
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/eth16i.c')
-rw-r--r--drivers/net/eth16i.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/eth16i.c b/drivers/net/eth16i.c
index ce22e15a3776..fb717be511f6 100644
--- a/drivers/net/eth16i.c
+++ b/drivers/net/eth16i.c
@@ -796,7 +796,7 @@ static int eth16i_receive_probe_packet(int ioaddr)
796 796
797 if(eth16i_debug > 1) 797 if(eth16i_debug > 1)
798 printk(KERN_DEBUG "RECEIVE_PACKET\n"); 798 printk(KERN_DEBUG "RECEIVE_PACKET\n");
799 return(0); /* Found receive packet */ 799 return 0; /* Found receive packet */
800 } 800 }
801 } 801 }
802 802
@@ -805,7 +805,7 @@ static int eth16i_receive_probe_packet(int ioaddr)
805 printk(KERN_DEBUG "RX_STATUS_REG = %x\n", inb(ioaddr + RX_STATUS_REG)); 805 printk(KERN_DEBUG "RX_STATUS_REG = %x\n", inb(ioaddr + RX_STATUS_REG));
806 } 806 }
807 807
808 return(0); /* Return success */ 808 return 0; /* Return success */
809} 809}
810 810
811#if 0 811#if 0
@@ -841,7 +841,7 @@ static int __init eth16i_get_irq(int ioaddr)
841 841
842 if( ioaddr < 0x1000) { 842 if( ioaddr < 0x1000) {
843 cbyte = inb(ioaddr + JUMPERLESS_CONFIG); 843 cbyte = inb(ioaddr + JUMPERLESS_CONFIG);
844 return( eth16i_irqmap[ ((cbyte & 0xC0) >> 6) ] ); 844 return eth16i_irqmap[((cbyte & 0xC0) >> 6)];
845 } else { /* Oh..the card is EISA so method getting IRQ different */ 845 } else { /* Oh..the card is EISA so method getting IRQ different */
846 unsigned short index = 0; 846 unsigned short index = 0;
847 cbyte = inb(ioaddr + EISA_IRQ_REG); 847 cbyte = inb(ioaddr + EISA_IRQ_REG);
@@ -849,7 +849,7 @@ static int __init eth16i_get_irq(int ioaddr)
849 cbyte = cbyte >> 1; 849 cbyte = cbyte >> 1;
850 index++; 850 index++;
851 } 851 }
852 return( eth32i_irqmap[ index ] ); 852 return eth32i_irqmap[index];
853 } 853 }
854} 854}
855 855
@@ -909,7 +909,7 @@ static int eth16i_read_eeprom(int ioaddr, int offset)
909 data = eth16i_read_eeprom_word(ioaddr); 909 data = eth16i_read_eeprom_word(ioaddr);
910 outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG); 910 outb(CS_0 | SK_0, ioaddr + EEPROM_CTRL_REG);
911 911
912 return(data); 912 return data;
913} 913}
914 914
915static int eth16i_read_eeprom_word(int ioaddr) 915static int eth16i_read_eeprom_word(int ioaddr)
@@ -928,7 +928,7 @@ static int eth16i_read_eeprom_word(int ioaddr)
928 eeprom_slow_io(); 928 eeprom_slow_io();
929 } 929 }
930 930
931 return(data); 931 return data;
932} 932}
933 933
934static void eth16i_eeprom_cmd(int ioaddr, unsigned char command) 934static void eth16i_eeprom_cmd(int ioaddr, unsigned char command)