Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48a17ad5 authored by Matthew R. Ochs's avatar Matthew R. Ochs Committed by Martin K. Petersen
Browse files

scsi: cxlflash: Remove unnecessary existence check



The AFU termination sequence has been refactored over time such that the
main tear down routine, term_afu(), can no longer can be invoked with a
NULL AFU pointer. Remove the unnecessary existence check from
term_afu().

Signed-off-by: default avatarMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: default avatarUma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e4df3eaa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -820,7 +820,6 @@ static void term_afu(struct cxlflash_cfg *cfg)
	for (k = cfg->afu->num_hwqs - 1; k >= 0; k--)
		term_intr(cfg, UNMAP_THREE, k);

	if (cfg->afu)
	stop_afu(cfg);

	for (k = cfg->afu->num_hwqs - 1; k >= 0; k--)