diff options
| author | Jason Gunthorpe <jgg@mellanox.com> | 2020-04-14 12:27:08 -0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-02 17:20:52 +0200 |
| commit | 641767a6eff3bc9d6611a33d33c917aa9b19ca0a (patch) | |
| tree | fd659abe058f63228a98f9e5bfe4a425ced8e553 /lib/mpi/mpicoder.c | |
| parent | 256a901c81f69d7e4e8c967f205b0f3bd9159f70 (diff) | |
net/cxgb4: Check the return from t4_query_params properly
commit c799fca8baf18d1bbbbad6c3b736eefbde8bdb90 upstream.
Positive return values are also failures that don't set val,
although this probably can't happen. Fixes gcc 10 warning:
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c: In function ‘t4_phy_fw_ver’:
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:3747:14: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
3747 | *phy_fw_ver = val;
Fixes: 01b6961410b7 ("cxgb4: Add PHY firmware support for T420-BT cards")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions
