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/chelsio/sge.c | |
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/chelsio/sge.c')
-rw-r--r-- | drivers/net/chelsio/sge.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/chelsio/sge.c b/drivers/net/chelsio/sge.c index 70221ca32683..f778b15ad3fd 100644 --- a/drivers/net/chelsio/sge.c +++ b/drivers/net/chelsio/sge.c | |||
@@ -273,6 +273,10 @@ struct sge { | |||
273 | struct cmdQ cmdQ[SGE_CMDQ_N] ____cacheline_aligned_in_smp; | 273 | struct cmdQ cmdQ[SGE_CMDQ_N] ____cacheline_aligned_in_smp; |
274 | }; | 274 | }; |
275 | 275 | ||
276 | static const u8 ch_mac_addr[ETH_ALEN] = { | ||
277 | 0x0, 0x7, 0x43, 0x0, 0x0, 0x0 | ||
278 | }; | ||
279 | |||
276 | /* | 280 | /* |
277 | * stop tasklet and free all pending skb's | 281 | * stop tasklet and free all pending skb's |
278 | */ | 282 | */ |
@@ -2012,10 +2016,6 @@ static void espibug_workaround_t204(unsigned long data) | |||
2012 | continue; | 2016 | continue; |
2013 | 2017 | ||
2014 | if (!skb->cb[0]) { | 2018 | if (!skb->cb[0]) { |
2015 | u8 ch_mac_addr[ETH_ALEN] = { | ||
2016 | 0x0, 0x7, 0x43, 0x0, 0x0, 0x0 | ||
2017 | }; | ||
2018 | |||
2019 | skb_copy_to_linear_data_offset(skb, | 2019 | skb_copy_to_linear_data_offset(skb, |
2020 | sizeof(struct cpl_tx_pkt), | 2020 | sizeof(struct cpl_tx_pkt), |
2021 | ch_mac_addr, | 2021 | ch_mac_addr, |
@@ -2048,8 +2048,6 @@ static void espibug_workaround(unsigned long data) | |||
2048 | 2048 | ||
2049 | if ((seop & 0xfff0fff) == 0xfff && skb) { | 2049 | if ((seop & 0xfff0fff) == 0xfff && skb) { |
2050 | if (!skb->cb[0]) { | 2050 | if (!skb->cb[0]) { |
2051 | u8 ch_mac_addr[ETH_ALEN] = | ||
2052 | {0x0, 0x7, 0x43, 0x0, 0x0, 0x0}; | ||
2053 | skb_copy_to_linear_data_offset(skb, | 2051 | skb_copy_to_linear_data_offset(skb, |
2054 | sizeof(struct cpl_tx_pkt), | 2052 | sizeof(struct cpl_tx_pkt), |
2055 | ch_mac_addr, | 2053 | ch_mac_addr, |