aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2017-06-01 16:50:10 +0800
committerMoyster <oysterized@gmail.com>2017-07-21 12:37:38 +0200
commitc0835da49f496fc481210c5d61af6eb9fe4a2c87 (patch)
treede5f9ca9ba94cab01551b6d4141e63a9fdf5281a /fs
parent73a689a45d2e64e9ebe71d7a3db8a7644ce00a10 (diff)
f2fs: remove the unnecessary cast for PTR_ERR
It's not necessary to specify 'int' casting for PTR_ERR. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/f2fs/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c
index 4a8a78f0b..800797c41 100644
--- a/fs/f2fs/acl.c
+++ b/fs/f2fs/acl.c
@@ -252,7 +252,7 @@ static int f2fs_set_acl(struct inode *inode, int type,
value = f2fs_acl_to_disk(F2FS_I_SB(inode), acl, &size);
if (IS_ERR(value)) {
clear_inode_flag(inode, FI_ACL_MODE);
- return (int)PTR_ERR(value);
+ return PTR_ERR(value);
}
}