diff mbox

libselinux: avcstat: Clean up redundant condition

Message ID 1480435959-27151-1-git-send-email-sds@tycho.nsa.gov (mailing list archive)
State Not Applicable
Headers show

Commit Message

Stephen Smalley Nov. 29, 2016, 4:12 p.m. UTC
dcb314 reported this via https://github.com/SELinuxProject/selinux/issues/20

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 libselinux/utils/avcstat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libselinux/utils/avcstat.c b/libselinux/utils/avcstat.c
index 70b3109..5ff582b 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);