diff mbox series

[10/21] libmultipath (coverity): silence unchecked return value warning

Message ID 20211118231338.22358-11-mwilck@suse.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series multipath-tools: coverity fixes | expand

Commit Message

Martin Wilck Nov. 18, 2021, 11:13 p.m. UTC
From: Martin Wilck <mwilck@suse.com>

path_get_tpgs() returns pp->tpgs, which we do check.

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 libmultipath/propsel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
index b287667..2984a5f 100644
--- a/libmultipath/propsel.c
+++ b/libmultipath/propsel.c
@@ -525,7 +525,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;