mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
[AX25]: sparse cleanups
net/ax25/ax25_route.c:251:13: warning: context imbalance in 'ax25_rt_seq_start' - wrong count at exit net/ax25/ax25_route.c:276:13: warning: context imbalance in 'ax25_rt_seq_stop' - unexpected unlock net/ax25/ax25_std_timer.c:65:25: warning: expensive signed divide net/ax25/ax25_uid.c:46:1: warning: symbol 'ax25_uid_list' was not declared. Should it be static? net/ax25/ax25_uid.c:146:13: warning: context imbalance in 'ax25_uid_seq_start' - wrong count at exit net/ax25/ax25_uid.c:169:13: warning: context imbalance in 'ax25_uid_seq_stop' - unexpected unlock net/ax25/af_ax25.c:573:28: warning: expensive signed divide net/ax25/af_ax25.c:1865:13: warning: context imbalance in 'ax25_info_start' - wrong count at exit net/ax25/af_ax25.c:1888:13: warning: context imbalance in 'ax25_info_stop' - unexpected unlock net/ax25/ax25_ds_timer.c:133:25: warning: expensive signed divide Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6bf1574ee3
commit
f16f3026db
5 changed files with 12 additions and 6 deletions
|
@ -32,7 +32,7 @@
|
|||
|
||||
void ax25_std_heartbeat_expiry(ax25_cb *ax25)
|
||||
{
|
||||
struct sock *sk=ax25->sk;
|
||||
struct sock *sk = ax25->sk;
|
||||
|
||||
if (sk)
|
||||
bh_lock_sock(sk);
|
||||
|
@ -62,7 +62,7 @@ void ax25_std_heartbeat_expiry(ax25_cb *ax25)
|
|||
*/
|
||||
if (sk != NULL) {
|
||||
if (atomic_read(&sk->sk_rmem_alloc) <
|
||||
(sk->sk_rcvbuf / 2) &&
|
||||
(sk->sk_rcvbuf >> 1) &&
|
||||
(ax25->condition & AX25_COND_OWN_RX_BUSY)) {
|
||||
ax25->condition &= ~AX25_COND_OWN_RX_BUSY;
|
||||
ax25->condition &= ~AX25_COND_ACK_PENDING;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue