diff options
author | Maciej Fijalkowski <maciej.fijalkowski@intel.com> | 2020-02-05 05:58:33 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-02-05 22:06:09 +0100 |
commit | 32c92c15ad3dca6f7cca8643766ad79fa3ab3d17 (patch) | |
tree | 5764c11370772c61c755b754279b83bdbc663728 /samples | |
parent | c77e9f09143822623dd71a0fdc84331129e97c3a (diff) | |
download | linux-stable-32c92c15ad3dca6f7cca8643766ad79fa3ab3d17.tar.gz linux-stable-32c92c15ad3dca6f7cca8643766ad79fa3ab3d17.tar.bz2 linux-stable-32c92c15ad3dca6f7cca8643766ad79fa3ab3d17.zip |
samples: bpf: Drop doubled variable declaration in xdpsock
Seems that by accident there is a doubled declaration of global variable
opt_xdp_bind_flags in xdpsock_user.c. The second one is uninitialized so
compiler was simply ignoring it.
To keep things clean, drop the doubled variable.
Fixes: c543f5469822 ("samples/bpf: add unaligned chunks mode support to xdpsock")
Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Björn Töpel <bjorn.topel@intel.com>
Link: https://lore.kernel.org/bpf/20200205045834.56795-3-maciej.fijalkowski@intel.com
Diffstat (limited to 'samples')
-rw-r--r-- | samples/bpf/xdpsock_user.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/bpf/xdpsock_user.c b/samples/bpf/xdpsock_user.c index 0b5acd722306..bab7a850e864 100644 --- a/samples/bpf/xdpsock_user.c +++ b/samples/bpf/xdpsock_user.c @@ -83,7 +83,6 @@ static u32 opt_xdp_bind_flags = XDP_USE_NEED_WAKEUP; static u32 opt_umem_flags; static int opt_unaligned_chunks; static int opt_mmap_flags; -static u32 opt_xdp_bind_flags; static int opt_xsk_frame_size = XSK_UMEM__DEFAULT_FRAME_SIZE; static int opt_timeout = 1000; static bool opt_need_wakeup = true; |