瀏覽代碼

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 年之前
父節點
當前提交
b77a493b1d
共有 1 個文件被更改,包括 252 次插入260 次删除
  1. 252 260
      security/selinux/selinuxfs.c

文件差異過大導致無法顯示
+ 252 - 260
security/selinux/selinuxfs.c


部分文件因文件數量過多而無法顯示