diff options
author | Nathan Chancellor <natechancellor@gmail.com> | 2018-11-12 15:10:42 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-16 17:51:13 -0800 |
commit | ac8acec9912a93be9953446766e0bb73aeeecc64 (patch) | |
tree | 1a10ca37e122a46276ff246ae2ee6259a4b5b670 /drivers | |
parent | a83d6e76a67424ebbbbed643f51e97934ffc2bc2 (diff) | |
download | linux-stable-ac8acec9912a93be9953446766e0bb73aeeecc64.tar.gz linux-stable-ac8acec9912a93be9953446766e0bb73aeeecc64.tar.bz2 linux-stable-ac8acec9912a93be9953446766e0bb73aeeecc64.zip |
bpf: Remove unused variable in nsim_bpf
Clang warns:
drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state'
[-Werror,-Wunused-variable]
struct nsim_bpf_bound_prog *state;
^
1 error generated.
The declaration should have been removed in commit b07ade27e933 ("bpf:
pass translate() as a callback and remove its ndo_bpf subcommand").
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/netdevsim/bpf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/netdevsim/bpf.c b/drivers/net/netdevsim/bpf.c index 6a5b7bd9a1f9..a1b29173ca1c 100644 --- a/drivers/net/netdevsim/bpf.c +++ b/drivers/net/netdevsim/bpf.c @@ -554,7 +554,6 @@ static void nsim_bpf_map_free(struct bpf_offloaded_map *offmap) int nsim_bpf(struct net_device *dev, struct netdev_bpf *bpf) { struct netdevsim *ns = netdev_priv(dev); - struct nsim_bpf_bound_prog *state; int err; ASSERT_RTNL(); |