debugfs: fix two warning messages when compiling with LLVM

This commit fixes two warning messages when compiling with LLVM.

Reported-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
crypto
Zheng Liu 2014-05-26 14:55:08 +08:00 committed by Theodore Ts'o
parent bbccc6f3c6
commit ab74c09071
2 changed files with 2 additions and 3 deletions

View File

@ -152,7 +152,7 @@ void do_lsdel(int argc, char **argv)
goto next;
}
}
if (lsd.free_blocks && !lsd.bad_blocks ||
if ((lsd.free_blocks && !lsd.bad_blocks) ||
inode.i_flags & EXT4_INLINE_DATA_FL) {
if (num_delarray >= max_delarray) {
max_delarray += 50;

View File

@ -281,10 +281,9 @@ static errcode_t ext2fs_inline_data_convert_dir(ext2_filsys fs, ext2_ino_t ino,
struct ext2_dir_entry *dir, *dir2;
struct ext2_dir_entry_tail *t;
errcode_t retval;
unsigned int offset;
unsigned int offset, rec_len;
int csum_size = 0;
int filetype = 0;
unsigned rec_len;
if (EXT2_HAS_RO_COMPAT_FEATURE(fs->super,
EXT4_FEATURE_RO_COMPAT_METADATA_CSUM))