summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2018-11-02 16:36:24 +0100
committerDavid S. Miller <davem@davemloft.net>2018-11-03 19:27:33 -0700
commit92619210529a6b77b2cbedbadba3ff5eaa6e28ed (patch)
tree75d341c7fdb4c8a81d784cd33b6ce573ad4b3bf7 /net/openvswitch
parente8ccbb7d2f53c62e14b889faaa3f6f809b657278 (diff)
downloadlinux-92619210529a6b77b2cbedbadba3ff5eaa6e28ed.tar.bz2
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/openvswitch')
0 files changed, 0 insertions, 0 deletions