[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250611025304.206306-1-wdhh6@aliyun.com>
Date: Wed, 11 Jun 2025 10:53:04 +0800
From: Chaohai Chen <wdhh6@...yun.com>
To: James.Bottomley@...senPartnership.com,
martin.petersen@...cle.com,
=linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Chaohai Chen <wdhh6@...yun.com>
Subject: [PATCH] scsi:core: Delete the boring judgment in sdev_evt_alloc()
Delte the boring judgment.
Signed-off-by: Chaohai Chen <wdhh6@...yun.com>
---
drivers/scsi/scsi_lib.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 144c72f0737a..7e7d5a04cfdf 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2683,21 +2683,6 @@ struct scsi_event *sdev_evt_alloc(enum scsi_device_event evt_type,
evt->evt_type = evt_type;
INIT_LIST_HEAD(&evt->node);
- /* evt_type-specific initialization, if any */
- switch (evt_type) {
- case SDEV_EVT_MEDIA_CHANGE:
- case SDEV_EVT_INQUIRY_CHANGE_REPORTED:
- case SDEV_EVT_CAPACITY_CHANGE_REPORTED:
- case SDEV_EVT_SOFT_THRESHOLD_REACHED_REPORTED:
- case SDEV_EVT_MODE_PARAMETER_CHANGE_REPORTED:
- case SDEV_EVT_LUN_CHANGE_REPORTED:
- case SDEV_EVT_ALUA_STATE_CHANGE_REPORTED:
- case SDEV_EVT_POWER_ON_RESET_OCCURRED:
- default:
- /* do nothing */
- break;
- }
-
return evt;
}
EXPORT_SYMBOL_GPL(sdev_evt_alloc);
--
2.34.1
Powered by blists - more mailing lists