[PATCH] scsi:core: Delete the boring judgment in sdev_evt_alloc()

Chaohai Chen posted 1 patch 4 months ago
drivers/scsi/scsi_lib.c | 15 ---------------
1 file changed, 15 deletions(-)
[PATCH] scsi:core: Delete the boring judgment in sdev_evt_alloc()
Posted by Chaohai Chen 4 months ago
Delte the boring judgment.

Signed-off-by: Chaohai Chen <wdhh6@aliyun.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