From c608e4667585c2dbdbe581001253023fe2abe0d8 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 27 Feb 2012 09:54:25 +0000 Subject: [PATCH] Remove test for pvid Since pvid is char buffer[] and not pointer, there is no point to check it for NULL. --- lib/format_text/format-text.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c index 441a2dbb3..5a6c08343 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; -- 2.43.5