[dm-devel] [PATCH v2 10/21] libmultipath (coverity): silence unchecked return value warning
mwilck at suse.com
mwilck at suse.com
Wed Dec 1 12:36:39 UTC 2021
From: Martin Wilck <mwilck at suse.com>
path_get_tpgs() returns pp->tpgs, which we do check.
Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com>
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
libmultipath/propsel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
index f7b8119..a842fc3 100644
--- a/libmultipath/propsel.c
+++ b/libmultipath/propsel.c
@@ -524,7 +524,7 @@ int select_checker(struct config *conf, struct path *pp)
ckr_name = RDAC;
goto out;
}
- path_get_tpgs(pp);
+ (void)path_get_tpgs(pp);
if (pp->tpgs != TPGS_NONE && pp->tpgs != TPGS_UNDEF) {
ckr_name = TUR;
goto out;
--
2.33.1
More information about the dm-devel
mailing list