diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-15 06:29:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:43 -0500 |
commit | 5c17d5f11212af5f12b91991b1132cf301dd1f28 (patch) | |
tree | d2484d9eb389c9f54c73c413f442dd97840d7976 /net/atm/br2684.c | |
parent | ca629f2472762088b105cd6081bf9aaa56d4547d (diff) |
[ATM]: Suppress some sparse warnings
CHECK net/atm/br2684.c
net/atm/br2684.c:665:13: warning: context imbalance in 'br2684_seq_start' - wrong count at exit
net/atm/br2684.c:676:13: warning: context imbalance in 'br2684_seq_stop' - unexpected unlock
CHECK net/atm/lec.c
net/atm/lec.c:196:23: warning: expensive signed divide
CHECK net/atm/proc.c
net/atm/proc.c:151:14: warning: context imbalance in 'vcc_seq_start' - wrong count at exit
net/atm/proc.c:154:13: warning: context imbalance in 'vcc_seq_stop' - unexpected unlock
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/br2684.c')
-rw-r--r-- | net/atm/br2684.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index 5c8a0dcb1045..574d9a964176 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -663,6 +663,7 @@ static struct atm_ioctl br2684_ioctl_ops = { | |||
663 | 663 | ||
664 | #ifdef CONFIG_PROC_FS | 664 | #ifdef CONFIG_PROC_FS |
665 | static void *br2684_seq_start(struct seq_file *seq, loff_t * pos) | 665 | static void *br2684_seq_start(struct seq_file *seq, loff_t * pos) |
666 | __acquires(devs_lock) | ||
666 | { | 667 | { |
667 | read_lock(&devs_lock); | 668 | read_lock(&devs_lock); |
668 | return seq_list_start(&br2684_devs, *pos); | 669 | return seq_list_start(&br2684_devs, *pos); |
@@ -674,6 +675,7 @@ static void *br2684_seq_next(struct seq_file *seq, void *v, loff_t * pos) | |||
674 | } | 675 | } |
675 | 676 | ||
676 | static void br2684_seq_stop(struct seq_file *seq, void *v) | 677 | static void br2684_seq_stop(struct seq_file *seq, void *v) |
678 | __releases(devs_lock) | ||
677 | { | 679 | { |
678 | read_unlock(&devs_lock); | 680 | read_unlock(&devs_lock); |
679 | } | 681 | } |