diff options
author | Benjamin Li <benli@broadcom.com> | 2008-09-18 19:38:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-18 19:38:24 -0400 |
commit | 344478db5385194ec27f6aaf780ea21c4b4ff02c (patch) | |
tree | f24c5f4720c27787d7fabb66da553461a2966fa3 /drivers | |
parent | d286600e199aa2f1058a1f883d234e73626304d2 (diff) |
bnx2: In bnx2_set_mac_link() return void rather then int
bnx2_set_mac_link() doesn't need to return any error codes. And
all the callers don't check the return code. It is safe to
change the return type to a void.
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/bnx2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c index 2486a656f12d..192a24ee3e66 100644 --- a/drivers/net/bnx2.c +++ b/drivers/net/bnx2.c | |||
@@ -1127,7 +1127,7 @@ bnx2_init_all_rx_contexts(struct bnx2 *bp) | |||
1127 | } | 1127 | } |
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | static int | 1130 | static void |
1131 | bnx2_set_mac_link(struct bnx2 *bp) | 1131 | bnx2_set_mac_link(struct bnx2 *bp) |
1132 | { | 1132 | { |
1133 | u32 val; | 1133 | u32 val; |
@@ -1193,8 +1193,6 @@ bnx2_set_mac_link(struct bnx2 *bp) | |||
1193 | 1193 | ||
1194 | if (CHIP_NUM(bp) == CHIP_NUM_5709) | 1194 | if (CHIP_NUM(bp) == CHIP_NUM_5709) |
1195 | bnx2_init_all_rx_contexts(bp); | 1195 | bnx2_init_all_rx_contexts(bp); |
1196 | |||
1197 | return 0; | ||
1198 | } | 1196 | } |
1199 | 1197 | ||
1200 | static void | 1198 | static void |