Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 344478db authored by Benjamin Li's avatar Benjamin Li Committed by David S. Miller
Browse files

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: default avatarBenjamin Li <benli@broadcom.com>
Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
Acked-by: default avatarJeff Garzik <jeff@garzik.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d286600e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1127,7 +1127,7 @@ bnx2_init_all_rx_contexts(struct bnx2 *bp)
	}
}

static int
static void
bnx2_set_mac_link(struct bnx2 *bp)
{
	u32 val;
@@ -1193,8 +1193,6 @@ bnx2_set_mac_link(struct bnx2 *bp)

	if (CHIP_NUM(bp) == CHIP_NUM_5709)
		bnx2_init_all_rx_contexts(bp);

	return 0;
}

static void