diff mbox series

scsi: core: Remove unused host error code strings

Message ID 20241015183948.86394-1-himanshu.madhani@oracle.com
State New
Headers show
Series scsi: core: Remove unused host error code strings | expand

Commit Message

Himanshu Madhani Oct. 15, 2024, 6:39 p.m. UTC
From: Himanshu Madhani <himanshu.madhani@oracle.com>

commit 68a3a9102a689 removed unused host code but
forgot to remove them from the corresponding
hostbyte_table[].

Fix it by removing unused hostcode strings and add
missing DID_TRANSPORT_MARGINAL string.

Fixes: 68a3a9102a689 ("scsi: core: Remove useless host error codes")
Signed-off-by: Himanshu Madhani <himanshu.madhani@oracle.com>
---
 drivers/scsi/constants.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c
index 340785536998..b74c3f505300 100644
--- a/drivers/scsi/constants.c
+++ b/drivers/scsi/constants.c
@@ -403,8 +403,8 @@  static const char * const hostbyte_table[]={
 "DID_OK", "DID_NO_CONNECT", "DID_BUS_BUSY", "DID_TIME_OUT", "DID_BAD_TARGET",
 "DID_ABORT", "DID_PARITY", "DID_ERROR", "DID_RESET", "DID_BAD_INTR",
 "DID_PASSTHROUGH", "DID_SOFT_ERROR", "DID_IMM_RETRY", "DID_REQUEUE",
-"DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST", "DID_TARGET_FAILURE",
-"DID_NEXUS_FAILURE", "DID_ALLOC_FAILURE", "DID_MEDIUM_ERROR" };
+"DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST",
+"DID_TRANSPORT_MARGINAL" };
 
 const char *scsi_hostbyte_string(int result)
 {