Skip to contentSkip to conversation

libselinux: avcstat: Clean up redundant condition

PATCH New Stephen Smalley 1 participant 1 message Nov 29, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libselinux: avcstat: Clean up redundant condition

dcb314 reported this via https://github.com/SELinuxProject/selinux/issues/20

---
 libselinux/utils/avcstat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libselinux/utils/avcstat.c +1 -1
index 70b3109..5ff582b 100644
@@ -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);
Signature · 1 line
2.7.4