diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-27 09:54:25 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2012-02-27 09:54:25 +0000 |
commit | c608e4667585c2dbdbe581001253023fe2abe0d8 (patch) | |
tree | c476b87294ed925e9a12b49396ec5b7bec438fc2 /lib/format_text/format-text.c | |
parent | d5fddeb208e5a8defecfd30398fe67b481316375 (diff) | |
download | lvm2-c608e4667585c2dbdbe581001253023fe2abe0d8.tar.gz lvm2-c608e4667585c2dbdbe581001253023fe2abe0d8.tar.xz lvm2-c608e4667585c2dbdbe581001253023fe2abe0d8.zip |
Remove test for pvid
Since pvid is char buffer[] and not pointer,
there is no point to check it for NULL.
Diffstat (limited to 'lib/format_text/format-text.c')
-rw-r--r-- | lib/format_text/format-text.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 441a2dbb..5a6c0834 100644 --- a/lib/format_text/format-text.c +++ b/lib/format_text/format-text.c @@ -1676,7 +1676,6 @@ static int _text_pv_setup(const struct format_type *fmt, */ else { if (!pv->dev || - !pv->dev->pvid || !(info = lvmcache_info_from_pvid(pv->dev->pvid, 0))) { log_error("PV %s missing from cache", pv_dev_name(pv)); return 0; |