target: simplify target_check_cdb_and_preempt
authorJörn Engel <joern@logfs.org>
Thu, 24 Nov 2011 01:05:12 +0000 (02:05 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 14 Dec 2011 11:27:55 +0000 (11:27 +0000)
commitfeae85644f1460b3373ef5141183ee43e6191b58
treee7f8dc735f0c1ca4d5cb4b6ede6f0a956a0708a1
parentc165f69c2ccbbb4ecf16c5d29d65922286bf62ff
target: simplify target_check_cdb_and_preempt

- rename to target_check_cdb_and_preempt
- use non-safe list_for_each_entry
- move common check into callee (simplifying callers)

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_tmr.c