diff options
author | Denis Cheng <crquan@gmail.com> | 2007-09-17 01:41:29 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-11 01:51:26 +0200 |
commit | 8b14a536701b50559a0d69d5d593323f550db4e9 (patch) | |
tree | 2da3f7edd8678555bc1aac5e9d0a167cb0635bf8 /net/atm/proc.c | |
parent | [IPV4] af_inet.c: use ARRAY_SIZE macro from kernel.h instead (diff) | |
download | linux-8b14a536701b50559a0d69d5d593323f550db4e9.tar.xz linux-8b14a536701b50559a0d69d5d593323f550db4e9.zip |
[NET]: all net/ cleanup with ARRAY_SIZE
Signed-off-by: Denis Cheng <crquan@gmail.com>
Diffstat (limited to 'net/atm/proc.c')
-rw-r--r-- | net/atm/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/proc.c b/net/atm/proc.c index 3a6be64b0512..5d9d5ffba145 100644 --- a/net/atm/proc.c +++ b/net/atm/proc.c @@ -176,7 +176,7 @@ static void pvc_info(struct seq_file *seq, struct atm_vcc *vcc) seq_printf(seq, "%3d %3d %5d %-3s %7d %-5s %7d %-6s", vcc->dev->number,vcc->vpi,vcc->vci, - vcc->qos.aal >= sizeof(aal_name)/sizeof(aal_name[0]) ? "err" : + vcc->qos.aal >= ARRAY_SIZE(aal_name) ? "err" : aal_name[vcc->qos.aal],vcc->qos.rxtp.min_pcr, class_name[vcc->qos.rxtp.traffic_class],vcc->qos.txtp.min_pcr, class_name[vcc->qos.txtp.traffic_class]); |