diff options
author | Mitchell Blank Jr <mitch@sfgoth.com> | 2005-11-30 01:13:55 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-30 01:13:55 +0100 |
commit | c219750b2e667f4f79f4d8faca5057dad793db87 (patch) | |
tree | 0a307e50392ee969c56f74fbcf3514c087e556d1 /net/atm | |
parent | [ATM]: always return the first interface for ATM_ITF_ANY (diff) | |
download | linux-c219750b2e667f4f79f4d8faca5057dad793db87.tar.xz linux-c219750b2e667f4f79f4d8faca5057dad793db87.zip |
[ATM]: atm_pcr_goal() doesn't modify its argument's contents -- mark it as const
Signed-off-by: Mitchell Blank Jr <mitch@sfgoth.com>
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/atm_misc.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/net/atm/atm_misc.c b/net/atm/atm_misc.c index 223c7ad5bd0f..02cc7e71efea 100644 --- a/net/atm/atm_misc.c +++ b/net/atm/atm_misc.c @@ -74,11 +74,14 @@ struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, */ -int atm_pcr_goal(struct atm_trafprm *tp) +int atm_pcr_goal(const struct atm_trafprm *tp) { - if (tp->pcr && tp->pcr != ATM_MAX_PCR) return -tp->pcr; - if (tp->min_pcr && !tp->pcr) return tp->min_pcr; - if (tp->max_pcr != ATM_MAX_PCR) return -tp->max_pcr; + if (tp->pcr && tp->pcr != ATM_MAX_PCR) + return -tp->pcr; + if (tp->min_pcr && !tp->pcr) + return tp->min_pcr; + if (tp->max_pcr != ATM_MAX_PCR) + return -tp->max_pcr; return 0; } |