libsemanage: genhomedircon: remove duplicated test condition

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-01-04 22:46:22 +01:00 committed by James Carter
parent aa115d00ff
commit 58fb53bc2b

View File

@ -246,7 +246,7 @@ static int fcontext_matches(const semanage_fcontext_t *fcontext, void *varg)
/* Only match ALL or DIR */ /* Only match ALL or DIR */
type = semanage_fcontext_get_type(fcontext); type = semanage_fcontext_get_type(fcontext);
if (type != SEMANAGE_FCONTEXT_ALL && type != SEMANAGE_FCONTEXT_ALL) if (type != SEMANAGE_FCONTEXT_ALL)
return 0; return 0;
len = strlen(oexpr); len = strlen(oexpr);