* [PATCH 2/3] checkpolicy: remove redundant if-clause
@ 2019-06-13 15:59 Jokke Hämäläinen
0 siblings, 0 replies; only message in thread
From: Jokke Hämäläinen @ 2019-06-13 15:59 UTC (permalink / raw)
To: selinux
Remove redundant if-clause because the check
already has been done earlier.
Signed-off-by: Unto Sten <sten.unto@gmail.com>
---
checkpolicy/parse_util.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/checkpolicy/parse_util.c b/checkpolicy/parse_util.c
index 9fda5b42..f2809b48 100644
--- a/checkpolicy/parse_util.c
+++ b/checkpolicy/parse_util.c
@@ -69,9 +69,6 @@ int read_source_policy(policydb_t * p, const char *file, const char *progname)
}
queue_destroy(id_queue);
- if (policydb_errors)
- return -1;
-
fclose(yyin);
return 0;
--
2.21.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-13 15:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 15:59 [PATCH 2/3] checkpolicy: remove redundant if-clause Jokke Hämäläinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).