]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Remove unused but set variables
authorTobias Klauser <tklauser@distanz.ch>
Tue, 8 Nov 2016 15:40:28 +0000 (16:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 02:15:00 +0000 (21:15 -0500)
commit4831d2ef977497c87817068a5d3bd6d4967d42f9
treed2df5905bf6826732abf06f3eff99ae6244ff164
parentefec22316996217ba5ebd194b7624daeab5720f4
bpf: Remove unused but set variables

Remove the unused but set variables min_set and max_set in
adjust_reg_min_max_vals to fix the following warning when building with
'W=1':

  kernel/bpf/verifier.c:1483:7: warning: variable ‘min_set’ set but not used [-Wunused-but-set-variable]

There is no warning about max_set being unused, but since it is only
used in the assignment of min_set it can be removed as well.

They were introduced in commit a91a21eaf94f ("bpf: allow access into map
value arrays") but seem to have never been used.

Cc: Josef Bacik <jbacik@fb.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/verifier.c