target: remove unused codes from enum tcm_tmrsp_table
authorJoern Engel <joern@logfs.org>
Wed, 3 Jul 2013 15:22:16 +0000 (11:22 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 8 Jul 2013 01:36:52 +0000 (18:36 -0700)
commit11fee8a751670cf6d60b1912e2e9cb1c7e392842
treed2c85866d95593de6fc099afa1b99ad654b1d3fe
parentad7babd23726b442b0b5fd92d8bd0611af5e5d6a
target: remove unused codes from enum tcm_tmrsp_table

Three have been checked for but were never set.  Remove the dead code.
Also renumbers the remaining ones to a) get rid of the holes after the
removal and b) avoid a collision between TMR_FUNCTION_COMPLETE==0 and
the uninitialized case.  If we failed to set a code, we should rather
fall into the default case then return success.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/tcm_fc/tfc_cmd.c
include/target/target_core_base.h