aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2014-02-03 14:08:26 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2014-02-12 15:14:30 -0800
commit3dca1471993f9b89f3184468f8bbab2b1e024451 (patch)
tree52df51e9575fad725864d22cf30846c97e056dac /include
parentiser-target: Fix leak on failure in isert_conn_create_fastreg_pool (diff)
downloadlinux-dev-3dca1471993f9b89f3184468f8bbab2b1e024451.tar.xz
linux-dev-3dca1471993f9b89f3184468f8bbab2b1e024451.zip
target: Simplify command completion by removing CMD_T_FAILED flag
The CMD_T_FAILED flag is set used in one place to record the result of a trivial test, and it is only tested once, few lines later. We might as well make the code simpler and easier to read by directly doing the test of "success" where we want to use it. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index c9c791209cd1..1772fadcff62 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -525,7 +525,6 @@ struct se_cmd {
#define CMD_T_COMPLETE (1 << 2)
#define CMD_T_SENT (1 << 4)
#define CMD_T_STOP (1 << 5)
-#define CMD_T_FAILED (1 << 6)
#define CMD_T_DEV_ACTIVE (1 << 7)
#define CMD_T_REQUEST_STOP (1 << 8)
#define CMD_T_BUSY (1 << 9)