• Tom Rix's avatar
    qlcnic: dcb: default to returning -EOPNOTSUPP · 1521db37
    Tom Rix authored
    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: 14d385b9 ("qlcnic: dcb: Query adapter DCB capabilities.")
    Signed-off-by: default avatarTom Rix <trix@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1521db37
qlcnic_dcb.h 2.73 KB