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>
This commit is contained in:
parent
ad7babd237
commit
11fee8a751
3 changed files with 5 additions and 13 deletions
|
|
@ -218,14 +218,11 @@ enum tcm_tmreq_table {
|
|||
|
||||
/* fabric independent task management response values */
|
||||
enum tcm_tmrsp_table {
|
||||
TMR_FUNCTION_COMPLETE = 0,
|
||||
TMR_TASK_DOES_NOT_EXIST = 1,
|
||||
TMR_LUN_DOES_NOT_EXIST = 2,
|
||||
TMR_TASK_STILL_ALLEGIANT = 3,
|
||||
TMR_TASK_FAILOVER_NOT_SUPPORTED = 4,
|
||||
TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED = 5,
|
||||
TMR_FUNCTION_AUTHORIZATION_FAILED = 6,
|
||||
TMR_FUNCTION_REJECTED = 255,
|
||||
TMR_FUNCTION_COMPLETE = 1,
|
||||
TMR_TASK_DOES_NOT_EXIST = 2,
|
||||
TMR_LUN_DOES_NOT_EXIST = 3,
|
||||
TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED = 4,
|
||||
TMR_FUNCTION_REJECTED = 5,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue