diff options
author | Tom Rix <trix@redhat.com> | 2022-03-26 20:20:03 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-26 21:46:44 +0300 |
commit | 1521db37f0d42334a88e8ff28198a27d1ed5cd7b (patch) | |
tree | d001a89d59d8d60860870c365db1ab62428bda2a /net | |
parent | 08be6b13db23f68146c600dd5adfd92e99d9ec6e (diff) | |
download | linux-1521db37f0d42334a88e8ff28198a27d1ed5cd7b.tar.xz |
qlcnic: dcb: default to returning -EOPNOTSUPP
Clang static analysis reports this issue
qlcnic_dcb.c:382:10: warning: Assigned value is
garbage or undefined
mbx_out = *val;
^ ~~~~
val is set in the qlcnic_dcb_query_hw_capability() wrapper.
If there is no query_hw_capability op in dcp, success is
returned without setting the val.
For this and similar wrappers, return -EOPNOTSUPP.
Fixes: 14d385b99059 ("qlcnic: dcb: Query adapter DCB capabilities.")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions