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 <eparis@redhat.com>
This commit is contained in:
Eric Paris 2010-11-23 11:40:08 -05:00
Родитель e8a7e48bb2
Коммит 9398c7f794
1 изменённых файлов: 267 добавлений и 286 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу