]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, xsave: Cleanup return codes in check_for_xstate()
authorDan Carpenter <error27@gmail.com>
Thu, 3 Jun 2010 10:07:46 +0000 (12:07 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 9 Jun 2010 22:57:36 +0000 (15:57 -0700)
commitd6d4d4205cf4ce4ba13bc320305afbda25303496
tree6e1a3832c00bebddff757d54efa43c9aacddab50
parente44a21b7268a022c7749f521c06214145bd161e4
x86, xsave: Cleanup return codes in check_for_xstate()

The places which call check_for_xstate() only care about zero or
non-zero so this patch doesn't change how the code runs, but it's a
cleanup.  The main reason for this patch is that I'm looking for places
which don't return -EFAULT for copy_from_user() failures.

Signed-off-by: Dan Carpenter <error27@gmail.com>
LKML-Reference: <20100603100746.GU5483@bicker>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Cc: Suresh Siddha <suresh.b.siddha@intel.com>
arch/x86/kernel/xsave.c