Skip to content

Commit 5c80e62

Browse files
ColinIanKingkuba-moo
authored andcommitted
qed: remove duplicated assignment to variable opaque_fid
Variable opaque_fid is being assigned twice with the same value in two identical statements. Remove the redundant first assignment. Cleans up clang scan build warning: drivers/net/ethernet/qlogic/qed/qed_rdma.c:1796:2: warning: Value stored to 'opaque_fid' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent e084a1c commit 5c80e62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/qlogic/qed/qed_rdma.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,8 +1793,6 @@ qed_rdma_create_srq(void *rdma_cxt,
17931793
if (rc)
17941794
goto err;
17951795

1796-
opaque_fid = p_hwfn->hw_info.opaque_fid;
1797-
17981796
opaque_fid = p_hwfn->hw_info.opaque_fid;
17991797
init_data.opaque_fid = opaque_fid;
18001798
init_data.comp_mode = QED_SPQ_MODE_EBLOCK;

0 commit comments

Comments
 (0)