scsi: hisi_sas: Remove redundant checks for automatic debugfs dump
authorYihang Li <liyihang9@huawei.com>
Mon, 22 Jan 2024 06:25:45 +0000 (14:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Jan 2024 02:11:54 +0000 (21:11 -0500)
commit3f030550476566b12091687c70071d05ad433e0d
tree22a8d1d8d75f90b7e113523a7049cd4f026ad0df
parent3c4f53b2c341ec6428b98cb51a89a09b025d0953
scsi: hisi_sas: Remove redundant checks for automatic debugfs dump

In commit 63f0733d07ce ("scsi: hisi_sas: Allocate DFX memory during dump
trigger"), the memory allocation time of the DFX is changed from device
initialization to dump occurs, so .debugfs_itct is not a valid address and
do not need to check.

The parameter hisi_sas_debugfs_enable is enough to check whether automatic
debugfs dump is triggered, so remove redunant checks.

Fixes: 63f0733d07ce ("scsi: hisi_sas: Allocate DFX memory during dump trigger")
Signed-off-by: Yihang Li <liyihang9@huawei.com>
Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
Link: https://lore.kernel.org/r/1705904747-62186-3-git-send-email-chenxiang66@hisilicon.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c