diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-23 01:40:09 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-26 21:34:29 -0400 |
commit | 807540baae406c84dcb9c1c8ef07a56d2d2ae84a (patch) | |
tree | ccd5c2cb57710dd6b73cf8df11eedf67abc14ae4 /drivers/net/tlan.h | |
parent | cb4dfe562cac6fcb544df752e40c1d78000d0712 (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/tlan.h')
-rw-r--r-- | drivers/net/tlan.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tlan.h b/drivers/net/tlan.h index d13ff12d7500..3315ced774e2 100644 --- a/drivers/net/tlan.h +++ b/drivers/net/tlan.h | |||
@@ -442,7 +442,7 @@ typedef struct tlan_private_tag { | |||
442 | static inline u8 TLan_DioRead8(u16 base_addr, u16 internal_addr) | 442 | static inline u8 TLan_DioRead8(u16 base_addr, u16 internal_addr) |
443 | { | 443 | { |
444 | outw(internal_addr, base_addr + TLAN_DIO_ADR); | 444 | outw(internal_addr, base_addr + TLAN_DIO_ADR); |
445 | return (inb((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x3))); | 445 | return inb((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x3)); |
446 | 446 | ||
447 | } /* TLan_DioRead8 */ | 447 | } /* TLan_DioRead8 */ |
448 | 448 | ||
@@ -452,7 +452,7 @@ static inline u8 TLan_DioRead8(u16 base_addr, u16 internal_addr) | |||
452 | static inline u16 TLan_DioRead16(u16 base_addr, u16 internal_addr) | 452 | static inline u16 TLan_DioRead16(u16 base_addr, u16 internal_addr) |
453 | { | 453 | { |
454 | outw(internal_addr, base_addr + TLAN_DIO_ADR); | 454 | outw(internal_addr, base_addr + TLAN_DIO_ADR); |
455 | return (inw((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x2))); | 455 | return inw((base_addr + TLAN_DIO_DATA) + (internal_addr & 0x2)); |
456 | 456 | ||
457 | } /* TLan_DioRead16 */ | 457 | } /* TLan_DioRead16 */ |
458 | 458 | ||
@@ -462,7 +462,7 @@ static inline u16 TLan_DioRead16(u16 base_addr, u16 internal_addr) | |||
462 | static inline u32 TLan_DioRead32(u16 base_addr, u16 internal_addr) | 462 | static inline u32 TLan_DioRead32(u16 base_addr, u16 internal_addr) |
463 | { | 463 | { |
464 | outw(internal_addr, base_addr + TLAN_DIO_ADR); | 464 | outw(internal_addr, base_addr + TLAN_DIO_ADR); |
465 | return (inl(base_addr + TLAN_DIO_DATA)); | 465 | return inl(base_addr + TLAN_DIO_DATA); |
466 | 466 | ||
467 | } /* TLan_DioRead32 */ | 467 | } /* TLan_DioRead32 */ |
468 | 468 | ||
@@ -537,6 +537,6 @@ static inline u32 TLan_HashFunc( const u8 *a ) | |||
537 | hash ^= ((a[2]^a[5])<<4); /* & 060 */ | 537 | hash ^= ((a[2]^a[5])<<4); /* & 060 */ |
538 | hash ^= ((a[2]^a[5])>>2); /* & 077 */ | 538 | hash ^= ((a[2]^a[5])>>2); /* & 077 */ |
539 | 539 | ||
540 | return (hash & 077); | 540 | return hash & 077; |
541 | } | 541 | } |
542 | #endif | 542 | #endif |