bpf: Remove unused variable in nsim_bpf
Subsystems (3)
PATCH 1/1 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").
--- drivers/net/netdevsim/bpf.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/netdevsim/bpf.c +0 -1
@@ -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 ();
Signature · 1 line
2.19.1
Quoted 4 lines · Nathan Chancellor
Clang warns:
drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state' [-Werror,-Wunused-variable]
Quoted 8 lines
struct nsim_bpf_bound_prog *state; ^1 error generated.
The declaration should have been removed in commit
b07ade27e933("bpf:
passtranslate()as a callback and remove itsndo_bpfsubcommand").Signed-off-by Nathan Chancellor <[email protected]>
Quentin Monnet
Acked-by2018-11-12 14:14 UTC-0800 ~ Jakub Kicinski <[email protected]>
Quoted 9 lines · Nathan Chancellor
Quoted 8 lines
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.
Quoted 7 lines
Quoted 4 lines
The declaration should have been removed in commit
b07ade27e933("bpf:
passtranslate()as a callback and remove itsndo_bpfsubcommand").Signed-off-by Nathan Chancellor <[email protected]>Acked-by Jakub Kicinski <[email protected]>
My bad, thanks for the fix!
Alexei Starovoitov
AppliedQuoted 4 lines · Nathan Chancellor
Clang warns:
drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state' [-Werror,-Wunused-variable]
Quoted 8 lines
struct nsim_bpf_bound_prog *state; ^1 error generated.
The declaration should have been removed in commit
b07ade27e933("bpf:
passtranslate()as a callback and remove itsndo_bpfsubcommand").Signed-off-by Nathan Chancellor <[email protected]>
Applied, Thanks