target: Use if/else for sa_res_key conditional in emulate_pro_register()
authorAndy Grover <agrover@redhat.com>
Thu, 16 May 2013 17:41:03 +0000 (10:41 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 14 Jun 2013 07:05:43 +0000 (00:05 -0700)
commit51d9c41d190b6645c69a279b0610aad8e4ed9d72
tree16c154a7306b196acd301a967117350137d0729b
parent459f213ba162bd13e113d6f92a8fa6c780fd67ed
target: Use if/else for sa_res_key conditional in emulate_pro_register()

Don't need goto, we can just do an if/else for sa_res_key behavior. Move
shorter case first. Slightly shorter b/c both cases can share a call to
update_and_write_aptpl() now.

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