diff options
author | Matthew R. Ochs <mrochs@linux.vnet.ibm.com> | 2017-08-25 17:17:53 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-08-25 18:23:06 -0400 |
commit | 48a17ad5931c3832eec68411620bc3527021c193 (patch) | |
tree | a5846741f4d627d5e5b8a25dd5ad80bdc5bd1b15 /drivers/scsi/cxlflash/main.c | |
parent | e4df3eaa6e72459767cbf9b883fdfd2d28197583 (diff) | |
download | blackbird-op-linux-48a17ad5931c3832eec68411620bc3527021c193.tar.gz blackbird-op-linux-48a17ad5931c3832eec68411620bc3527021c193.zip |
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>
Diffstat (limited to 'drivers/scsi/cxlflash/main.c')
-rw-r--r-- | drivers/scsi/cxlflash/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/cxlflash/main.c b/drivers/scsi/cxlflash/main.c index 6a4367cc9caa..76b8b7eed0c0 100644 --- a/drivers/scsi/cxlflash/main.c +++ b/drivers/scsi/cxlflash/main.c @@ -820,8 +820,7 @@ 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); + stop_afu(cfg); for (k = cfg->afu->num_hwqs - 1; k >= 0; k--) term_mc(cfg, k); |