From 2231b598c6d2a2da4d60fe6f67f237839ad3a46c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 27 Sep 2018 02:24:38 +0000 Subject: [PATCH] scst: Make command state numbers consecutive This makes it easier for the compiler to optimize command state switch statements. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7480 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 98b0d01c0..059f0bce0 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -165,7 +165,8 @@ enum { /* Internal cmd finished */ SCST_CMD_STATE_FINISHED_INTERNAL, - SCST_CMD_STATE_LAST_ACTIVE = (SCST_CMD_STATE_FINISHED_INTERNAL+100), + /* An invalid command state */ + SCST_CMD_STATE_LAST_ACTIVE, /** Passive states **/