]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: remove unnecessary position check from list_for_each_safe loops
authorKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 13:22:51 +0000 (15:22 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Sep 2011 13:22:51 +0000 (15:22 +0200)
commitb29a641219f647d389ae782f3d7a0cd8b1051bed
tree82a0af60b6e0949823df9486b2662000a076147b
parentb94fecf587b935c42cb10666ff554461042092f7
libblkid: remove unnecessary position check from list_for_each_safe loops

The position pointer is dereferenced before the check in the
for() in the list_for_each_safe macro.

Note that struct list_head should not contain NULL pointers. See
INIT_LIST_HEAD() macro.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/cache.c
libblkid/src/devname.c