powerpc/spufs: Use correct return value for spu_handle_mm_fault
authorJeremy Kerr <jk@ozlabs.org>
Tue, 17 Feb 2009 00:44:14 +0000 (11:44 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 22 Feb 2009 23:48:58 +0000 (10:48 +1100)
commit60ee031940c1b09c137b617a8829e2f081961fe0
treeeb61ad956dc3b6e2e4e5f7434451fddc97cda160
parent13870b657578bcce167978ee93dc02bf54e3beb0
powerpc/spufs: Use correct return value for spu_handle_mm_fault

Currently, spu_handle_mm_fault disregards the 'ret' variable and always
returns -EFAULT on error.

This change refactos spu_handle_mm_fault a little, to return the
ret variable as appropriate. This allows us to combine the error and
sucess paths.

Also, remove the #if-0-ed IS_VALID_EA() check, it has never been
used.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/spu_fault.c