]> git.baikalelectronics.ru Git - kernel.git/commit
target: Minor cleanups to core_tmr_drain_tmr_list
authorJoern Engel <joern@logfs.org>
Wed, 26 Oct 2011 21:22:19 +0000 (14:22 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 27 Oct 2011 01:00:29 +0000 (01:00 +0000)
commitb18698466387dd2487e31b365ce11bdefe553f7d
treed511435edbec33a4ffe283cd1e6de8fef06653a8
parentb360ab6bc6f76074e23828e1742a038217af13d6
target: Minor cleanups to core_tmr_drain_tmr_list

This patch adds a handful minor cleanups to core_tmr_drain_tmr_list() that
remove an unnecessary NULL check, use list_for_each_entry_safe() instead of
list_entry(), and makes the drain_tmr_list walk use *tmr_p instead of
directly referencing the passed *tmr function parameter.

Signed-off-by: Joern Engel <joern@logfs.org>
Cc: Joern Engel <joern@logfs.org>
Reviewed-by: Roland Dreier <roland@purestorage.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_tmr.c