diff options
author | Joe Perches <joe@perches.com> | 2010-12-21 02:16:10 -0800 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2010-12-21 02:16:10 -0800 |
commit | 215faf9c5f6e319e97edea9e178123e07825c14d (patch) | |
tree | 32fb283f64110ad634a37dc2e133cb91a97988c5 /drivers/net/skfp | |
parent | 75a84eb5d144dc761e1bb0f7dcacbf2b5cee562c (diff) | |
download | linux-stable-215faf9c5f6e319e97edea9e178123e07825c14d.tar.gz linux-stable-215faf9c5f6e319e97edea9e178123e07825c14d.tar.bz2 linux-stable-215faf9c5f6e319e97edea9e178123e07825c14d.zip |
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/skfp')
-rw-r--r-- | drivers/net/skfp/smt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 2d9941c045bc..1e1bd0c201c8 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c @@ -1263,7 +1263,7 @@ void smt_set_timestamp(struct s_smc *smc, u_char *p) static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) { int i ; - u_char *map ; + const u_char *map ; u_short in ; u_short out ; @@ -1271,7 +1271,7 @@ static void smt_fill_policy(struct s_smc *smc, struct smt_p_policy *policy) * MIB para 101b (fddiSMTConnectionPolicy) coding * is different from 0005 coding */ - static u_char ansi_weirdness[16] = { + static const u_char ansi_weirdness[16] = { 0,7,5,3,8,1,6,4,9,10,2,11,12,13,14,15 } ; SMTSETPARA(policy,SMT_P_POLICY) ; |