Skip to content

Commit e1b18d7

Browse files
committed
AF_XDP-interaction: Fix another warning in complete_tx
warning: ‘return’ with no value, in function returning non-void Signed-off-by: Jesper Dangaard Brouer <[email protected]>
1 parent 96e5daf commit e1b18d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AF_XDP-interaction/af_xdp_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ static int complete_tx(struct xsk_socket_info *xsk)
561561
int err;
562562

563563
if (!xsk->outstanding_tx)
564-
return;
564+
return 0;
565565

566566
/* Notify kernel via sendto syscall that TX packet are avail */
567567
err = kick_tx(xsk);

0 commit comments

Comments
 (0)