diff options
author | 2022-02-14 07:41:39 -0800 | |
---|---|---|
committer | 2022-02-15 14:31:43 +0000 | |
commit | 2a36ed7c1cd55742503bed81d2cc0ea83bd0ad0c (patch) | |
tree | f16572374f1d293c0d182c5ff2c0b548ae0c9693 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ipv4: add description about martian source (diff) | |
download | wireguard-linux-2a36ed7c1cd55742503bed81d2cc0ea83bd0ad0c.tar.xz wireguard-linux-2a36ed7c1cd55742503bed81d2cc0ea83bd0ad0c.zip |
dpaa2-switch: fix default return of dpaa2_switch_flower_parse_mirror_key
Clang static analysis reports this representative problem
dpaa2-switch-flower.c:616:24: warning: The right operand of '=='
is a garbage value
tmp->cfg.vlan_id == vlan) {
^ ~~~~
vlan is set in dpaa2_switch_flower_parse_mirror_key(). However
this function can return success without setting vlan. So
change the default return to -EOPNOTSUPP.
Fixes: 0f3faece5808 ("dpaa2-switch: add VLAN based mirroring")
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions