Skip to content

Commit bc3994f

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: remove unneeded check condition in __f2fs_setxattr()
It has checked return value of write_all_xattrs(), remove unneeded following check condition. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 8874ad7 commit bc3994f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/f2fs/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ static int __f2fs_setxattr(struct inode *inode, int index,
757757
if (index == F2FS_XATTR_INDEX_ENCRYPTION &&
758758
!strcmp(name, F2FS_XATTR_NAME_ENCRYPTION_CONTEXT))
759759
f2fs_set_encrypted_inode(inode);
760-
if (!error && S_ISDIR(inode->i_mode))
760+
if (S_ISDIR(inode->i_mode))
761761
set_sbi_flag(F2FS_I_SB(inode), SBI_NEED_CP);
762762

763763
same:

0 commit comments

Comments
 (0)