diff options
Diffstat (limited to 'newlib/libc/machine/spu/fwrite.c')
-rw-r--r-- | newlib/libc/machine/spu/fwrite.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/newlib/libc/machine/spu/fwrite.c b/newlib/libc/machine/spu/fwrite.c index 5cb45e0af..3804165c8 100644 --- a/newlib/libc/machine/spu/fwrite.c +++ b/newlib/libc/machine/spu/fwrite.c @@ -55,7 +55,6 @@ _DEFUN (fwrite, (buf, size, count, fp), size_t count _AND FILE * fp) { - size_t* ret; c99_fwrite_t args; CHECK_INIT(_REENT); @@ -64,10 +63,7 @@ _DEFUN (fwrite, (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_FWRITE, &args); - - return *ret; + return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_FWRITE, &args); } #endif /* ! _REENT_ONLY */ |