From: johann Date: Thu, 28 May 2009 11:43:44 +0000 (+0000) Subject: Branch b_release_1_8_1 X-Git-Tag: v1_8_0_123~5 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e457bd4c89af626250fb6901129124c1688c17ea;p=fs%2Flustre-release.git Branch b_release_1_8_1 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 6a28589..b783fbc 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);