futex: clean up futex_(un)lock_pi fault handling
authorDarren Hart <dvhltc@us.ibm.com>
Thu, 18 Dec 2008 23:06:34 +0000 (15:06 -0800)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Dec 2008 08:20:21 +0000 (09:20 +0100)
Impact: cleanup

Some apparently left over cruft code was complicating the fault logic:

Testing if uval != -EFAULT doesn't have any meaning, get_user() sets ret
to either 0 or -EFAULT, there's no need to compare uval, especially not
against EFAULT which it will never be.  This patch removes the superfluous
test and clarifies the comment blocks.

Build and boot tested on an 8way x86_64 system.

Signed-off-by: Darren Hart <dvhltc@us.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found