Skip to content

Commit b557063

Browse files
ColinIanKingrleon
authored andcommitted
RDMA/hfi1: Remove redundant assignment to pointer ppd
Pointer ppd is being assigned a value in a for-loop however it is never read. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/infiniband/hw/hfi1/init.c:1030:3: warning: Value stored to 'ppd' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 02e7d13 commit b557063

File tree

1 file changed

+0
-1
lines changed
  • drivers/infiniband/hw/hfi1

1 file changed

+0
-1
lines changed

drivers/infiniband/hw/hfi1/init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,6 @@ static void shutdown_device(struct hfi1_devdata *dd)
10271027
msix_clean_up_interrupts(dd);
10281028

10291029
for (pidx = 0; pidx < dd->num_pports; ++pidx) {
1030-
ppd = dd->pport + pidx;
10311030
for (i = 0; i < dd->num_rcv_contexts; i++) {
10321031
rcd = hfi1_rcd_get_by_index(dd, i);
10331032
hfi1_rcvctrl(dd, HFI1_RCVCTRL_TAILUPD_DIS |

0 commit comments

Comments
 (0)