diff options
author | Masato Noguchi <Masato.Noguchi@jp.sony.com> | 2006-11-20 12:45:07 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:40:01 -0500 |
commit | 3692dc66149dc17cd82ec785a06478322c0eddff (patch) | |
tree | f74db54d0f60f58344a7a81cdf819c10030b992c /arch | |
parent | 932f535dd4c83dc3eb631c2cee1dfd6ae289b88c (diff) |
[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')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 1 |
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, | |||
1279 | goto out; | 1279 | goto out; |
1280 | 1280 | ||
1281 | ctx->tagwait |= 1 << cmd.tag; | 1281 | ctx->tagwait |= 1 << cmd.tag; |
1282 | ret = size; | ||
1282 | 1283 | ||
1283 | out: | 1284 | out: |
1284 | return ret; | 1285 | return ret; |