OpenCloudOS-Kernel/drivers/net/ethernet/chelsio
Jason Gunthorpe c799fca8ba net/cxgb4: Check the return from t4_query_params properly
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>
2020-04-14 16:44:54 -07:00
..
cxgb net: cxgb2: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
cxgb3 net: cxgb3: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
cxgb4 net/cxgb4: Check the return from t4_query_params properly 2020-04-14 16:44:54 -07:00
cxgb4vf net: cxgb4vf: reject unsupported coalescing params 2020-03-10 16:28:53 -07:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00