diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-15 06:30:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:44 -0500 |
commit | 95b7d924a589dbefc7ae2ea6c7144b86b75d6a47 (patch) | |
tree | 887766c4c98864db4fa1ac0ec5b97bcc90bc2ab5 /net/rose/rose_in.c | |
parent | 5c17d5f11212af5f12b91991b1132cf301dd1f28 (diff) |
[ROSE]: Supress sparse warnings
CHECK net/rose/af_rose.c
net/rose/af_rose.c:125:11: warning: expensive signed divide
net/rose/af_rose.c:976:46: warning: expensive signed divide
net/rose/af_rose.c:1379:13: warning: context imbalance in 'rose_info_start' - wrong count at exit
net/rose/af_rose.c:1406:13: warning: context imbalance in 'rose_info_stop' - unexpected unlock
CHECK net/rose/rose_in.c
net/rose/rose_in.c:185:25: warning: expensive signed divide
CHECK net/rose/rose_route.c
net/rose/rose_route.c:997:46: warning: expensive signed divide
net/rose/rose_route.c:1070:13: warning: context imbalance in 'rose_node_start' - wrong count at exit
net/rose/rose_route.c:1093:13: warning: context imbalance in 'rose_node_stop' - unexpected unlock
net/rose/rose_route.c:1146:13: warning: context imbalance in 'rose_neigh_start' - wrong count at exit
net/rose/rose_route.c:1169:13: warning: context imbalance in 'rose_neigh_stop' - unexpected unlock
net/rose/rose_route.c:1229:13: warning: context imbalance in 'rose_route_start' - wrong count at exit
net/rose/rose_route.c:1252:13: warning: context imbalance in 'rose_route_stop' - unexpected unlock
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/rose_in.c')
-rw-r--r-- | net/rose/rose_in.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rose/rose_in.c b/net/rose/rose_in.c index 4ee0879d3540..7f7fcb46b4fa 100644 --- a/net/rose/rose_in.c +++ b/net/rose/rose_in.c | |||
@@ -182,7 +182,7 @@ static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int framety | |||
182 | break; | 182 | break; |
183 | } | 183 | } |
184 | if (atomic_read(&sk->sk_rmem_alloc) > | 184 | if (atomic_read(&sk->sk_rmem_alloc) > |
185 | (sk->sk_rcvbuf / 2)) | 185 | (sk->sk_rcvbuf >> 1)) |
186 | rose->condition |= ROSE_COND_OWN_RX_BUSY; | 186 | rose->condition |= ROSE_COND_OWN_RX_BUSY; |
187 | } | 187 | } |
188 | /* | 188 | /* |