Skip to content
Commit abc1fd4f authored by Joern Engel's avatar Joern Engel Committed by Nicholas Bellinger
Browse files

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: default avatarJoern Engel <joern@logfs.org>
Cc: Joern Engel <joern@logfs.org>
Reviewed-by: default avatarRoland Dreier <roland@purestorage.com>
Cc: Roland Dreier <roland@purestorage.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 6eb40b2a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment