summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell
diff options
context:
space:
mode:
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>2006-11-20 18:45:07 +0100
committerPaul Mackerras <paulus@samba.org>2006-12-04 20:40:01 +1100
commit3692dc66149dc17cd82ec785a06478322c0eddff (patch)
treef74db54d0f60f58344a7a81cdf819c10030b992c /arch/powerpc/platforms/cell
parent932f535dd4c83dc3eb631c2cee1dfd6ae289b88c (diff)
downloadlinux-3692dc66149dc17cd82ec785a06478322c0eddff.tar.gz
linux-3692dc66149dc17cd82ec785a06478322c0eddff.tar.bz2
linux-3692dc66149dc17cd82ec785a06478322c0eddff.zip
[POWERPC] spufs: Fix return value of spufs_mfc_write
This patch changes spufs_mfc_write() to return correct size instead of 0. Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell')
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 1c1af71d19cb..e6667530332b 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -1279,6 +1279,7 @@ static ssize_t spufs_mfc_write(struct file *file, const char __user *buffer,
goto out;
ctx->tagwait |= 1 << cmd.tag;
+ ret = size;
out:
return ret;