From 58fb53bc2b6ed01524717a65e3d42b63af799e48 Mon Sep 17 00:00:00 2001 From: Nicolas Iooss Date: Wed, 4 Jan 2017 22:46:22 +0100 Subject: [PATCH] libsemanage: genhomedircon: remove duplicated test condition Signed-off-by: Nicolas Iooss --- libsemanage/src/genhomedircon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsemanage/src/genhomedircon.c b/libsemanage/src/genhomedircon.c index 7ceeafb7..fd6d3919 100644 --- a/libsemanage/src/genhomedircon.c +++ b/libsemanage/src/genhomedircon.c @@ -246,7 +246,7 @@ static int fcontext_matches(const semanage_fcontext_t *fcontext, void *varg) /* Only match ALL or DIR */ type = semanage_fcontext_get_type(fcontext); - if (type != SEMANAGE_FCONTEXT_ALL && type != SEMANAGE_FCONTEXT_ALL) + if (type != SEMANAGE_FCONTEXT_ALL) return 0; len = strlen(oexpr);