net: chelsio: cxgb4: add an error code check in t4_load_phy_fw
authorSu Hui <suhui@nfschina.com>
Fri, 20 Oct 2023 09:27:59 +0000 (17:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2023 10:36:30 +0000 (11:36 +0100)
commit9f771493da935299c6393ad3563b581255d01a37
tree82da07f229f75cd64864b4ccbc2012bd4bf9cae8
parentca082f019d8fbb983f03080487946da714154bae
net: chelsio: cxgb4: add an error code check in t4_load_phy_fw

t4_set_params_timeout() can return -EINVAL if failed, add check
for this.

Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c