From: Jeremy Kerr Date: Tue, 17 Feb 2009 00:44:14 +0000 (+1100) Subject: powerpc/spufs: Use correct return value for spu_handle_mm_fault X-Git-Tag: v2.6.30-rc1~619^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60ee031940c1b09c137b617a8829e2f081961fe0;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed