diff options
author | Eric Paris <eparis@redhat.com> | 2010-11-23 11:40:08 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-11-30 17:28:57 -0500 |
commit | b77a493b1dc8010245feeac001e5c7ed0988678f (patch) | |
tree | f0d2364ce8ed46ab569f3a41cbebb9a51bffb0f0 /lib/ts_fsm.c | |
parent | 9398c7f794078dc1768cc061b3da8cdd59f179a5 (diff) | |
download | op-kernel-dev-b77a493b1dc8010245feeac001e5c7ed0988678f.zip op-kernel-dev-b77a493b1dc8010245feeac001e5c7ed0988678f.tar.gz |
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>
Diffstat (limited to 'lib/ts_fsm.c')
0 files changed, 0 insertions, 0 deletions