git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/scatterlist: use consistent sg_copy_buffer() return type
[sfrench/cifs-2.6.git]
/
lib
/
scatterlist.c
diff --git
a/lib/scatterlist.c
b/lib/scatterlist.c
index 0a482ef988e56e87d77d40392092e894b29084ae..a5977894640434b909f63f852a21ec7ec14a6ee2 100644
(file)
--- a/
lib/scatterlist.c
+++ b/
lib/scatterlist.c
@@
-933,7
+933,7
@@
size_t sg_copy_buffer(struct scatterlist *sgl, unsigned int nents, void *buf,
sg_miter_start(&miter, sgl, nents, sg_flags);
if (!sg_miter_skip(&miter, skip))
- return
false
;
+ return
0
;
while ((offset < buflen) && sg_miter_next(&miter)) {
unsigned int len;