diff options
author | 2022-01-18 05:41:10 -0800 | |
---|---|---|
committer | 2022-01-19 14:34:43 +0000 | |
commit | baa59504c1cd0cca7d41954a45ee0b3dc78e41a0 (patch) | |
tree | 319e90aae50aca0e334b3f6f373b58d4b1b1c251 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | net: phy: micrel: use kszphy_suspend()/kszphy_resume for irq aware devices (diff) | |
download | linux-dev-baa59504c1cd0cca7d41954a45ee0b3dc78e41a0.tar.xz linux-dev-baa59504c1cd0cca7d41954a45ee0b3dc78e41a0.zip |
net: mscc: ocelot: fix using match before it is set
Clang static analysis reports this issue
ocelot_flower.c:563:8: warning: 1st function call argument
is an uninitialized value
!is_zero_ether_addr(match.mask->dst)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The variable match is used before it is set. So move the
block.
Fixes: 75944fda1dfe ("net: mscc: ocelot: offload ingress skbedit and vlan actions to VCAP IS1")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions