1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Explicitely ignore errors in label_read iteration.

We don't want stack traces here, so mark as void.
This commit is contained in:
Zdenek Kabelac 2012-02-28 10:10:07 +00:00
parent 0475b86268
commit 89bce34cfb

View File

@ -641,7 +641,7 @@ static void _rescan_entry(struct lvmcache_info *info)
struct label *label;
if (info->status & CACHE_INVALID)
label_read(info->dev, &label, UINT64_C(0));
(void) label_read(info->dev, &label, UINT64_C(0));
}
static int _scan_invalid(void)
@ -688,7 +688,7 @@ int lvmcache_label_scan(struct cmd_context *cmd, int full_scan)
}
while ((dev = dev_iter_get(iter)))
label_read(dev, &label, UINT64_C(0));
(void) label_read(dev, &label, UINT64_C(0));
dev_iter_destroy(iter);