From dd8d5671e2cd09d396c59beb2b8112df97546f3b Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Tue, 29 Nov 2016 11:11:26 -0500 Subject: [PATCH] libselinux: avcstat: Clean up redundant condition dcb314 reported this via https://github.com/SELinuxProject/selinux/issues/20 Signed-off-by: Stephen Smalley --- libselinux/utils/avcstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libselinux/utils/avcstat.c b/libselinux/utils/avcstat.c index 70b3109b..5ff582b8 100644 --- a/libselinux/utils/avcstat.c +++ b/libselinux/utils/avcstat.c @@ -203,7 +203,7 @@ int main(int argc, char **argv) if (!parsed) die("unable to parse \'%s\': no data", avcstatfile); - if (cumulative || (!cumulative && !i)) + if (cumulative || !i) printf("%10Lu %10Lu %10Lu %10Lu %10Lu %10Lu\n", tot.lookups, tot.hits, tot.misses, tot.allocations, tot.reclaims, tot.frees);