mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net: Change return type of sk_busy_loop from bool to void
checking the return value of sk_busy_loop. As there are only a few consumers of that data, and the data being checked for can be replaced with a check for !skb_queue_empty() we might as well just pull the code out of sk_busy_loop and place it in the spots that actually need it. Signed-off-by: Alexander Duyck <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d2e64dbbe9
commit
2b5cd0dfa3
4 changed files with 25 additions and 22 deletions
|
|
@ -7518,9 +7518,12 @@ struct sk_buff *sctp_skb_recv_datagram(struct sock *sk, int flags,
|
|||
if (sk->sk_shutdown & RCV_SHUTDOWN)
|
||||
break;
|
||||
|
||||
if (sk_can_busy_loop(sk) &&
|
||||
sk_busy_loop(sk, noblock))
|
||||
continue;
|
||||
if (sk_can_busy_loop(sk)) {
|
||||
sk_busy_loop(sk, noblock);
|
||||
|
||||
if (!skb_queue_empty(&sk->sk_receive_queue))
|
||||
continue;
|
||||
}
|
||||
|
||||
/* User doesn't want to wait. */
|
||||
error = -EAGAIN;
|
||||
|
|
|
|||
Loading…
Reference in a new issue