Home
last modified time | relevance | path

Searched hist:"1 f981de5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_util.c1f981de5 Wed Oct 31 11:16:47 CDT 2012 Roland Dreier <roland@purestorage.com> 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 <joern@logfs.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1f981de5 Wed Oct 31 11:16:47 CDT 2012 Roland Dreier <roland@purestorage.com> 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 <joern@logfs.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>