Skip to content

Commit

Permalink
SELinux: standardize return code handling in selinuxfs.c
Browse files Browse the repository at this point in the history
selinuxfs.c has lots of different standards on how to handle return paths on
error.  For the most part transition to

	rc=errno
	if (failure)
		goto out;
[...]
out:
	cleanup()
	return rc;

Instead of doing cleanup mid function, or having multiple returns or other
options.  This doesn't do that for every function, but most of the complex
functions which have cleanup routines on error.

Signed-off-by: Eric Paris <[email protected]>
  • Loading branch information
eparis committed Nov 30, 2010
1 parent b77a493 commit 4b02b52
Showing 1 changed file with 157 additions and 171 deletions.
Loading

0 comments on commit 4b02b52

Please sign in to comment.