OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed exfat_generic_pwrite(): it should return -1 on error, not -errno.
[android-x86/external-exfat.git]
/
libexfat
/
io.c
diff --git
a/libexfat/io.c
b/libexfat/io.c
index
577238b
..
32c144c
100644
(file)
--- a/
libexfat/io.c
+++ b/
libexfat/io.c
@@
-345,11
+345,8
@@
ssize_t exfat_generic_pwrite(struct exfat* ef, struct exfat_node* node,
off_t lsize, loffset, remainder;
if (offset + size > node->size)
- {
- int rc = exfat_truncate(ef, node, offset + size);
- if (rc != 0)
- return rc;
- }
+ if (exfat_truncate(ef, node, offset + size) != 0)
+ return -1;
if (size == 0)
return 0;