]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcbfad882da1f6f6d946b1e60be91e17293e82a3c
treeeb61ad956dc3b6e2e4e5f7434451fddc97cda160
parentc31b3a8bdef491cf1b4fcab00068efd60d3794b4
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