Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Matthew R. Ochs and committed by
Martin K. Petersen
48a17ad5 e4df3eaa

+1 -2
+1 -2
drivers/scsi/cxlflash/main.c
··· 820 820 for (k = cfg->afu->num_hwqs - 1; k >= 0; k--) 821 821 term_intr(cfg, UNMAP_THREE, k); 822 822 823 - if (cfg->afu) 824 - stop_afu(cfg); 823 + stop_afu(cfg); 825 824 826 825 for (k = cfg->afu->num_hwqs - 1; k >= 0; k--) 827 826 term_mc(cfg, k);