aboutsummaryrefslogtreecommitdiff
path: root/fs/gfs2/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/gfs2/dir.c')
-rw-r--r--fs/gfs2/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index d74a52bda54..f3dbda216ca 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -284,7 +284,7 @@ static int gfs2_dir_read_data(struct gfs2_inode *ip, char *buf,
if (offset >= ip->i_di.di_size)
return 0;
- if ((offset + size) > ip->i_di.di_size)
+ if (offset + size > ip->i_di.di_size)
size = ip->i_di.di_size - offset;
if (!size)
@@ -399,7 +399,7 @@ static int gfs2_dirent_find_space(const struct gfs2_dirent *dent,
if (!dent->de_inum.no_addr)
actual = GFS2_DIRENT_SIZE(0);
- if ((totlen - actual) >= required)
+ if (totlen - actual >= required)
return 1;
return 0;
}