diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 05:16:10 -0500 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 05:16:10 -0500 |
commit | 215faf9c5f6e319e97edea9e178123e07825c14d (patch) | |
tree | 32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/qlcnic | |
parent | 75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (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/qlcnic')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_hw.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/net/qlcnic/qlcnic_hw.c b/drivers/net/qlcnic/qlcnic_hw.c index c9c4bf1458a8..616940f0a8d0 100644 --- a/drivers/net/qlcnic/qlcnic_hw.c +++ b/drivers/net/qlcnic/qlcnic_hw.c | |||
@@ -381,7 +381,7 @@ qlcnic_sre_macaddr_change(struct qlcnic_adapter *adapter, u8 *addr, | |||
381 | return qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); | 381 | return qlcnic_send_cmd_descs(adapter, (struct cmd_desc_type0 *)&req, 1); |
382 | } | 382 | } |
383 | 383 | ||
384 | static int qlcnic_nic_add_mac(struct qlcnic_adapter *adapter, u8 *addr) | 384 | static int qlcnic_nic_add_mac(struct qlcnic_adapter *adapter, const u8 *addr) |
385 | { | 385 | { |
386 | struct list_head *head; | 386 | struct list_head *head; |
387 | struct qlcnic_mac_list_s *cur; | 387 | struct qlcnic_mac_list_s *cur; |
@@ -415,7 +415,9 @@ void qlcnic_set_multi(struct net_device *netdev) | |||
415 | { | 415 | { |
416 | struct qlcnic_adapter *adapter = netdev_priv(netdev); | 416 | struct qlcnic_adapter *adapter = netdev_priv(netdev); |
417 | struct netdev_hw_addr *ha; | 417 | struct netdev_hw_addr *ha; |
418 | u8 bcast_addr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; | 418 | static const u8 bcast_addr[ETH_ALEN] = { |
419 | 0xff, 0xff, 0xff, 0xff, 0xff, 0xff | ||
420 | }; | ||
419 | u32 mode = VPORT_MISS_MODE_DROP; | 421 | u32 mode = VPORT_MISS_MODE_DROP; |
420 | 422 | ||
421 | if (!test_bit(__QLCNIC_FW_ATTACHED, &adapter->state)) | 423 | if (!test_bit(__QLCNIC_FW_ATTACHED, &adapter->state)) |
@@ -621,10 +623,11 @@ int qlcnic_config_rss(struct qlcnic_adapter *adapter, int enable) | |||
621 | u64 word; | 623 | u64 word; |
622 | int i, rv; | 624 | int i, rv; |
623 | 625 | ||
624 | const u64 key[] = { 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, | 626 | static const u64 key[] = { |
625 | 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL, | 627 | 0xbeac01fa6a42b73bULL, 0x8030f20c77cb2da3ULL, |
626 | 0x255b0ec26d5a56daULL }; | 628 | 0xae7b30b4d0ca2bcbULL, 0x43a38fb04167253dULL, |
627 | 629 | 0x255b0ec26d5a56daULL | |
630 | }; | ||
628 | 631 | ||
629 | memset(&req, 0, sizeof(struct qlcnic_nic_req)); | 632 | memset(&req, 0, sizeof(struct qlcnic_nic_req)); |
630 | req.qhdr = cpu_to_le64(QLCNIC_HOST_REQUEST << 23); | 633 | req.qhdr = cpu_to_le64(QLCNIC_HOST_REQUEST << 23); |