diff options
| author | Chas Williams <chas@cmf.nrl.navy.mil> | 2004-02-24 08:21:07 -0800 |
|---|---|---|
| committer | Patrick McHardy <kaber@trash.net> | 2004-02-24 08:21:07 -0800 |
| commit | d894b9155acb7bc04f7b6265f83a89f5bbf4a86c (patch) | |
| tree | 918752a3fa8aca70cc3da2dc1f8abecc5b70ab73 | |
| parent | 6cd2c39a62873bc107c8d0b48ee5f1f64604fa1a (diff) | |
[ATM]: use clip_tbl instead of clp_tbl_hook (from Francois Romieu <romieu@fr.zoreil.com>)
| -rw-r--r-- | net/atm/clip.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index 82b7a69f2b99..7dc72ddf9d92 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c @@ -885,7 +885,7 @@ static void *arp_get_idx(struct arp_state *state, loff_t l) if (v) goto done; } - state->n = clip_tbl_hook->hash_buckets[state->bucket + 1]; + state->n = clip_tbl.hash_buckets[state->bucket + 1]; } done: return v; @@ -896,18 +896,12 @@ static void *arp_seq_start(struct seq_file *seq, loff_t *pos) struct arp_state *state = seq->private; void *ret = (void *)1; - if (!clip_tbl_hook) { - state->bucket = -1; - goto out; - } - - read_lock_bh(&clip_tbl_hook->lock); + read_lock_bh(&clip_tbl.lock); state->bucket = 0; - state->n = clip_tbl_hook->hash_buckets[0]; + state->n = clip_tbl.hash_buckets[0]; state->vcc = (void *)1; if (*pos) ret = arp_get_idx(state, *pos); -out: return ret; } @@ -916,7 +910,7 @@ static void arp_seq_stop(struct seq_file *seq, void *v) struct arp_state *state = seq->private; if (state->bucket != -1) - read_unlock_bh(&clip_tbl_hook->lock); + read_unlock_bh(&clip_tbl.lock); } static void *arp_seq_next(struct seq_file *seq, void *v, loff_t *pos) |
