• Rahul Verma's avatar
    qed: Fix static checker warning · 68203a67
    Rahul Verma authored
    	Static Checker Warnings:
    	drivers/net/ethernet/qlogic/qed/qed_main.c:1510 qed_fill_link_capability()
    	error: uninitialized symbol 'tcvr_state'.
    	drivers/net/ethernet/qlogic/qed/qed_mcp.c:1951 qed_mcp_trans_speed_mask()
    	error: uninitialized symbol 'transceiver_state'.
    	drivers/net/ethernet/qlogic/qed/qed_mcp.c:1951 qed_mcp_trans_speed_mask()
    	error: uninitialized symbol 'transceiver_type'.
    
    	Symbols tcvr_state, transceiver_state and transceiver_type
    	are initialized with respective default state.
    
    Fixes: c56a8be7 ("qed: Add supported link and advertise link to display in ethtool.")
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarRahul Verma <Rahul.Verma@cavium.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    68203a67
qed_mcp.c 96.9 KB