Whamcloud - gitweb
libquota: fix invalid return in non-void function
authorTheodore Ts'o <tytso@mit.edu>
Mon, 20 Feb 2012 23:24:31 +0000 (18:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Feb 2012 23:24:31 +0000 (18:24 -0500)
quota_inode_truncate() returns an errcode_t, not void.

Addresses-SourceForge-Bug: #3468423

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/quota/quotaio.c

index 3f434ca..481d5f5 100644 (file)
@@ -143,7 +143,7 @@ errcode_t quota_inode_truncate(ext2_filsys fs, ext2_ino_t ino)
 
        inode.i_dtime = fs->now ? fs->now : time(0);
        if (!ext2fs_inode_has_valid_blocks2(fs, &inode))
-               return;
+               return 0;
 
        ext2fs_block_iterate3(fs, ino, BLOCK_FLAG_READ_ONLY, NULL,
                              release_blocks_proc, NULL);