diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-11-02 16:36:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-03 19:27:33 -0700 |
commit | 92619210529a6b77b2cbedbadba3ff5eaa6e28ed (patch) | |
tree | 75d341c7fdb4c8a81d784cd33b6ce573ad4b3bf7 /net | |
parent | e8ccbb7d2f53c62e14b889faaa3f6f809b657278 (diff) |
qed: fix link config error handling
gcc-8 notices that qed_mcp_get_transceiver_data() may fail to
return a result to the caller:
drivers/net/ethernet/qlogic/qed/qed_mcp.c: In function 'qed_mcp_trans_speed_mask':
drivers/net/ethernet/qlogic/qed/qed_mcp.c:1955:2: error: 'transceiver_type' may be used uninitialized in this function [-Werror=maybe-uninitialized]
When an error is returned by qed_mcp_get_transceiver_data(), we
should propagate that to the caller of qed_mcp_trans_speed_mask()
rather than continuing with uninitialized data.
Fixes: c56a8be7e7aa ("qed: Add supported link and advertise link to display in ethtool.")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions