summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/fread.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/fread.c')
-rw-r--r--newlib/libc/machine/spu/fread.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fread.c b/newlib/libc/machine/spu/fread.c
index 840449d8d..f3c420f76 100644
--- a/newlib/libc/machine/spu/fread.c
+++ b/newlib/libc/machine/spu/fread.c
@@ -55,7 +55,6 @@ _DEFUN (fread, (buf, size, count, fp),
size_t count _AND
FILE * fp)
{
- size_t* ret;
c99_fread_t args;
CHECK_INIT(_REENT);
@@ -64,10 +63,7 @@ _DEFUN (fread, (buf, size, count, fp),
args.size = size;
args.count = count;
args.fp = fp->_fp;
- ret = (size_t*) &args;
- __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FREAD, &args);
-
- return *ret;
+ return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FREAD, &args);
}
#endif /* ! _REENT_ONLY */