ocfs2: Fix 2 warning during ocfs2 make.
fs/ocfs2/dir.c: In function ‘ocfs2_extend_dir’: fs/ocfs2/dir.c:2700: warning: ‘ret’ may be used uninitialized in this function fs/ocfs2/suballoc.c: In function ‘ocfs2_get_suballoc_slot_bit’: fs/ocfs2/suballoc.c:2216: warning: comparison is always true due to limited range of data type Signed-off-by: Tao Ma <tao.ma@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com>
This commit is contained in:
@@ -2697,7 +2697,7 @@ static int ocfs2_dx_dir_index_block(struct inode *dir,
|
||||
u32 *num_dx_entries,
|
||||
struct buffer_head *dirent_bh)
|
||||
{
|
||||
int ret, namelen, i;
|
||||
int ret = 0, namelen, i;
|
||||
char *de_buf, *limit;
|
||||
struct ocfs2_dir_entry *de;
|
||||
struct buffer_head *dx_leaf_bh;
|
||||
|
Reference in New Issue
Block a user