Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1a9e98
)
Branch b_release_1_8_1
author
johann
<johann>
Thu, 28 May 2009 11:43:44 +0000
(11:43 +0000)
committer
johann
<johann>
Thu, 28 May 2009 11:43:44 +0000
(11:43 +0000)
b=18092
Fix following warning:
/cache/build/BUILD/lustre-1.8.0.123/lustre/llite/rw26.c: In function
'll_direct_IO_26':
/cache/build/BUILD/lustre-1.8.0.123/lustre/llite/rw26.c:274: warning:
'max_pages' may be used uninitialized in this function
lustre/llite/rw26.c
patch
|
blob
|
history
diff --git
a/lustre/llite/rw26.c
b/lustre/llite/rw26.c
index
6a28589
..
b783fbc
100644
(file)
--- a/
lustre/llite/rw26.c
+++ b/
lustre/llite/rw26.c
@@
-271,7
+271,7
@@
static ssize_t ll_direct_IO_26(int rw, struct kiocb *iocb,
while (iov_left > 0) {
struct page **pages;
- int page_count, max_pages;
+ int page_count, max_pages
= 0
;
size_t bytes;
bytes = min(size,iov_left);