From: Roland Dreier Date: Wed, 31 Oct 2012 16:16:47 +0000 (-0700) Subject: iscsi-target: Use list_first_entry() where appropriate X-Git-Tag: v3.8-rc1~94^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f981de55a46777ca0da93af5faf7d3f6e7e7000;p=pandora-kernel.git iscsi-target: Use list_first_entry() where appropriate Instead of using the obfuscated pattern of list_for_each_entry(var, list, ...) break; to set var to the first entry of a list, use the straightforward var = list_first_entry(list, ...); Reported-by: Joern Engel Signed-off-by: Roland Dreier Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed