Addresses-Coverity-Id: #207522
Addresses-Coverity-Id: #207523
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
list_for_each_safe(p, pnext, &cache->bic_devs) {
blkid_dev dev = list_entry(p, struct blkid_struct_dev, bid_devs);
- if (!p)
- break;
if (stat(dev->bid_name, &st) < 0) {
DBG(DEBUG_CACHE,
printf("freeing %s\n", dev->bid_name));
*/
list_for_each_safe(p, pnext, &cache->bic_devs) {
blkid_dev dev2;
- if (!p)
- break;
dev2 = list_entry(p, struct blkid_struct_dev, bid_devs);
if (dev2->bid_flags & BLKID_BID_FL_VERIFIED)
continue;