Files
twx-linux/drivers
Jason Gunthorpe 024bb46789 net/cxgb4: Check the return from t4_query_params properly
commit c799fca8ba 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: 01b6961410 ("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>
2020-05-02 17:23:16 +02:00
..
2020-04-02 17:20:26 +02:00
…
…
…
…
2020-01-04 13:39:51 +01:00
…
…
…
…
…
…
…
…
2020-05-02 17:23:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-05-02 17:23:12 +02:00
…
…
2020-02-28 15:42:33 +01:00
…
…
…