diff options
author | Mitchell Blank Jr <mitch@sfgoth.com> | 2008-06-17 19:20:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-17 19:20:06 -0400 |
commit | 61c33e012964ce358b42d2a1e9cd309af5dab02b (patch) | |
tree | e76ac9b1e61a998def99f0f8f7fa4688fab26494 /net/atm/common.c | |
parent | df3bc8bd8f8fd17e9b22859d82af38fa702e75b7 (diff) |
atm: use const where reasonable
From: 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/common.c')
-rw-r--r-- | net/atm/common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/atm/common.c b/net/atm/common.c index c865517ba449..d34edbe754c8 100644 --- a/net/atm/common.c +++ b/net/atm/common.c | |||
@@ -262,7 +262,7 @@ static int adjust_tp(struct atm_trafprm *tp,unsigned char aal) | |||
262 | } | 262 | } |
263 | 263 | ||
264 | 264 | ||
265 | static int check_ci(struct atm_vcc *vcc, short vpi, int vci) | 265 | static int check_ci(const struct atm_vcc *vcc, short vpi, int vci) |
266 | { | 266 | { |
267 | struct hlist_head *head = &vcc_hash[vci & | 267 | struct hlist_head *head = &vcc_hash[vci & |
268 | (VCC_HTABLE_SIZE - 1)]; | 268 | (VCC_HTABLE_SIZE - 1)]; |
@@ -290,7 +290,7 @@ static int check_ci(struct atm_vcc *vcc, short vpi, int vci) | |||
290 | } | 290 | } |
291 | 291 | ||
292 | 292 | ||
293 | static int find_ci(struct atm_vcc *vcc, short *vpi, int *vci) | 293 | static int find_ci(const struct atm_vcc *vcc, short *vpi, int *vci) |
294 | { | 294 | { |
295 | static short p; /* poor man's per-device cache */ | 295 | static short p; /* poor man's per-device cache */ |
296 | static int c; | 296 | static int c; |
@@ -646,7 +646,7 @@ static int atm_change_qos(struct atm_vcc *vcc,struct atm_qos *qos) | |||
646 | } | 646 | } |
647 | 647 | ||
648 | 648 | ||
649 | static int check_tp(struct atm_trafprm *tp) | 649 | static int check_tp(const struct atm_trafprm *tp) |
650 | { | 650 | { |
651 | /* @@@ Should be merged with adjust_tp */ | 651 | /* @@@ Should be merged with adjust_tp */ |
652 | if (!tp->traffic_class || tp->traffic_class == ATM_ANYCLASS) return 0; | 652 | if (!tp->traffic_class || tp->traffic_class == ATM_ANYCLASS) return 0; |
@@ -663,7 +663,7 @@ static int check_tp(struct atm_trafprm *tp) | |||
663 | } | 663 | } |
664 | 664 | ||
665 | 665 | ||
666 | static int check_qos(struct atm_qos *qos) | 666 | static int check_qos(const struct atm_qos *qos) |
667 | { | 667 | { |
668 | int error; | 668 | int error; |
669 | 669 | ||