]> git.baikalelectronics.ru Git - kernel.git/commit
target: Simplify command completion by removing CMD_T_FAILED flag
authorRoland Dreier <roland@purestorage.com>
Mon, 3 Feb 2014 22:08:26 +0000 (14:08 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 12 Feb 2014 23:14:30 +0000 (15:14 -0800)
commit7ecdbb7009d11d4ef2bfed1158e9a3d2bf9e0104
tree52df51e9575fad725864d22cf30846c97e056dac
parent2efd3d6d871a5e775d7850db4fd08b19c48757a5
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>
drivers/target/target_core_transport.c
include/target/target_core_base.h