All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] trivial: remove unneeded int
@ 2019-05-24 20:07 Jokke Hämäläinen
  2019-06-07 14:04 ` Petr Lautrbach
  0 siblings, 1 reply; 6+ messages in thread
From: Jokke Hämäläinen @ 2019-05-24 20:07 UTC (permalink / raw)
  To: selinux


diff --git a/libsepol/src/context.c b/libsepol/src/context.c
index a88937fc..e81b28c6 100644
--- a/libsepol/src/context.c
+++ b/libsepol/src/context.c
@@ -38,7 +38,6 @@ int context_is_valid(const policydb_t * p, const context_struct_t * c)
 	role_datum_t *role;
 	user_datum_t *usrdatum;
 	ebitmap_t types, roles;
-	int ret = 1;
 
 	ebitmap_init(&types);
 	ebitmap_init(&roles);
@@ -75,7 +74,7 @@ int context_is_valid(const policydb_t * p, const context_struct_t * c)
 	if (!mls_context_isvalid(p, c))
 		return 0;
 
-	return ret;
+	return 1;
 }
 
 /*

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-06-13 15:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-24 20:07 [PATCH] trivial: remove unneeded int Jokke Hämäläinen
2019-06-07 14:04 ` Petr Lautrbach
2019-06-07 14:46   ` Petr Lautrbach
2019-06-12 14:32     ` Jokke Hämäläinen
2019-06-12 18:39       ` William Roberts
2019-06-13 15:57         ` Jokke Hämäläinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.