From: johann Date: Thu, 28 May 2009 11:44:15 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_2_01~1^2~373 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=df00a235b041c8f8b9e0e96331fe84c507b8c8cf;p=fs%2Flustre-release.git Branch b1_8 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 --- diff --git a/lustre/llite/rw26.c b/lustre/llite/rw26.c index 4200009..9bfbf6a 100644 --- 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);