target: Add register_type and preempt_type enums to clarify code
authorAndy Grover <agrover@redhat.com>
Thu, 16 May 2013 17:40:54 +0000 (10:40 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:04:25 +0000 (00:04 -0700)
commit33ce6a87f2aba790429ac228288edc0e410143a2
tree5ce5e96b2b3c478f38469ea8cb7ea19ed46a6012
parent317ddd256b9c24b0d78fa8018f80f1e495481a10
target: Add register_type and preempt_type enums to clarify code

core_scsi3_enulate_pro_register took an 'ignore_key' parameter that
really distinguished between REGISTER and REGISTER_AND_IGNORE_EXISTING_KEY
registration types, which was a little confusing. Same situation for
PREEMPT and PREEMPT_AND_ABORT. Use enums to add a little more
descriptiveness to the code.

Signed-off-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c