mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
SELinux: standardize return code handling in policydb.c
policydb.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]>
This commit is contained in:
parent
e8a7e48bb2
commit
9398c7f794
1 changed files with 268 additions and 287 deletions
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue