mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
df3bc8bd8f
commit
61c33e0129
6 changed files with 50 additions and 51 deletions
|
@ -262,7 +262,7 @@ static int adjust_tp(struct atm_trafprm *tp,unsigned char aal)
|
|||
}
|
||||
|
||||
|
||||
static int check_ci(struct atm_vcc *vcc, short vpi, int vci)
|
||||
static int check_ci(const struct atm_vcc *vcc, short vpi, int vci)
|
||||
{
|
||||
struct hlist_head *head = &vcc_hash[vci &
|
||||
(VCC_HTABLE_SIZE - 1)];
|
||||
|
@ -290,7 +290,7 @@ static int check_ci(struct atm_vcc *vcc, short vpi, int vci)
|
|||
}
|
||||
|
||||
|
||||
static int find_ci(struct atm_vcc *vcc, short *vpi, int *vci)
|
||||
static int find_ci(const struct atm_vcc *vcc, short *vpi, int *vci)
|
||||
{
|
||||
static short p; /* poor man's per-device cache */
|
||||
static int c;
|
||||
|
@ -646,7 +646,7 @@ static int atm_change_qos(struct atm_vcc *vcc,struct atm_qos *qos)
|
|||
}
|
||||
|
||||
|
||||
static int check_tp(struct atm_trafprm *tp)
|
||||
static int check_tp(const struct atm_trafprm *tp)
|
||||
{
|
||||
/* @@@ Should be merged with adjust_tp */
|
||||
if (!tp->traffic_class || tp->traffic_class == ATM_ANYCLASS) return 0;
|
||||
|
@ -663,7 +663,7 @@ static int check_tp(struct atm_trafprm *tp)
|
|||
}
|
||||
|
||||
|
||||
static int check_qos(struct atm_qos *qos)
|
||||
static int check_qos(const struct atm_qos *qos)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue