Browse Source

SELinux: standardize return code handling in selinuxfs.c

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 <eparis@redhat.com>
Eric Paris 14 years ago
parent
commit
b77a493b1d
1 changed files with 252 additions and 260 deletions
  1. 252 260
      security/selinux/selinuxfs.c

File diff suppressed because it is too large
+ 252 - 260
security/selinux/selinuxfs.c


Some files were not shown because too many files changed in this diff