Thread (4 messages) flat view 4 messages, 4 authors, 2020-06-11

Re: [PATCH] xdp: fix xsk_generic_xmit errno

From: David Miller <davem@davemloft.net>
Date: 2020-06-11 19:44:12
Also in: bpf

From: Li RongQing <redacted>
Date: Thu, 11 Jun 2020 13:11:06 +0800
quoted hunk ↗ jump to hunk
@@ -353,7 +353,6 @@ static int xsk_generic_xmit(struct sock *sk)
 		len = desc.len;
 		skb = sock_alloc_send_skb(sk, len, 1, &err);
 		if (unlikely(!skb)) {
-			err = -EAGAIN;
 			goto out;
 		}
Since the result is a single-statement basic block you must remove the
curly braces.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help