From: Eric Paris Date: Tue, 23 Nov 2010 16:40:08 +0000 (-0500) Subject: SELinux: standardize return code handling in policydb.c X-Git-Tag: v2.6.38-rc1~429^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9398c7f794078dc1768cc061b3da8cdd59f179a5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed