aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
committerJoe Perches <joe@perches.com>2010-12-21 05:16:10 -0500
commit215faf9c5f6e319e97edea9e178123e07825c14d (patch)
tree32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/bnx2x
parent75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff)
drivers/net/*/: Use static const
Using static const generally increases object text and decreases data size. It also generally decreases overall object size. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/bnx2x')
-rw-r--r--drivers/net/bnx2x/bnx2x_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c
index bdc3fc26b31..cf54427a8d8 100644
--- a/drivers/net/bnx2x/bnx2x_main.c
+++ b/drivers/net/bnx2x/bnx2x_main.c
@@ -6208,7 +6208,7 @@ static int bnx2x_func_stop(struct bnx2x *bp)
6208 * @param cam_offset offset in a CAM to use 6208 * @param cam_offset offset in a CAM to use
6209 * @param is_bcast is the set MAC a broadcast address (for E1 only) 6209 * @param is_bcast is the set MAC a broadcast address (for E1 only)
6210 */ 6210 */
6211static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, u8 *mac, 6211static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac,
6212 u32 cl_bit_vec, u8 cam_offset, 6212 u32 cl_bit_vec, u8 cam_offset,
6213 u8 is_bcast) 6213 u8 is_bcast)
6214{ 6214{
@@ -6400,7 +6400,9 @@ void bnx2x_set_eth_mac(struct bnx2x *bp, int set)
6400 6400
6401 if (CHIP_IS_E1(bp)) { 6401 if (CHIP_IS_E1(bp)) {
6402 /* broadcast MAC */ 6402 /* broadcast MAC */
6403 u8 bcast[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; 6403 static const u8 bcast[ETH_ALEN] = {
6404 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
6405 };
6404 bnx2x_set_mac_addr_gen(bp, set, bcast, 0, cam_offset + 1, 1); 6406 bnx2x_set_mac_addr_gen(bp, set, bcast, 0, cam_offset + 1, 1);
6405 } 6407 }
6406} 6408}