]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Btrfs: fix compile warnings in extent_io.c
authorJosef Bacik <josef@redhat.com>
Mon, 23 Apr 2012 18:00:51 +0000 (14:00 -0400)
committerJosef Bacik <josef@redhat.com>
Wed, 30 May 2012 14:23:28 +0000 (10:23 -0400)
These warnings are bogus since we will always have at least one page in an
eb, but to make the compiler happy just set ret = 0 in these two cases.
Thanks,
Btrfs: fix compile warnings in extent_io.c

These warnings are bogus since we will always have at least one page in an
eb, but to make the compiler happy just set ret = 0 in these two cases.
Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
fs/btrfs/extent_io.c

index 82b4829f00b8202e23226708e795e1cdc172ed24..836fc37a437a5ded7ee1964f76f4e61113d076a0 100644 (file)
@@ -3163,7 +3163,7 @@ static int write_one_eb(struct extent_buffer *eb,
        u64 offset = eb->start;
        unsigned long i, num_pages;
        int rw = (epd->sync_io ? WRITE_SYNC : WRITE);
-       int ret;
+       int ret = 0;
 
        clear_bit(EXTENT_BUFFER_IOERR, &eb->bflags);
        num_pages = num_extent_pages(eb->start, eb->len);