target/iscsi: Misc cleanups from Agrover (round 1)
authorAndy Grover <agrover@redhat.com>
Tue, 3 Apr 2012 22:51:02 +0000 (15:51 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 15 Apr 2012 00:40:33 +0000 (17:40 -0700)
commitc6037cc546ca10cbdc5b60f0598b4ddcb181fe5d
treee94de0fb6cd142cad6e8152c7130da1caefcf951
parent2fbb471e7821e3a12334054cd90aa3f3edb22cc3
target/iscsi: Misc cleanups from Agrover (round 1)

*) Use decoded cmd->immediate_cmd for conditional instead of
   re-examining hdr->opcode
*) Make iscist_dataout_post_crc_passed more legible
*) use max() to reduce code in build_r2ts_for_cmd()
*) Remove CONFIG_SMP and if 0 ifdefs
*) Replace if/goto with a while loop
*) Remove unused conn->tx_immediate_queue and tx_response_queue

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