Skip to content

Commit 5e37a45

Browse files
William Hansen-Bairdnamjaejeon
authored andcommitted
exfat: remove unnecessary else after return statement
Else-branch is unnecessary after return statement in if-branch. Remove to enhance readability and reduce indentation. Signed-off-by: William Hansen-Baird <william.hansen.baird@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
1 parent 9276e33 commit 5e37a45

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fs/exfat/inode.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,9 @@ static ssize_t exfat_direct_IO(struct kiocb *iocb, struct iov_iter *iter)
495495
exfat_write_failed(mapping, size);
496496

497497
return ret;
498-
} else
499-
size = pos + ret;
498+
}
499+
500+
size = pos + ret;
500501

501502
if (rw == WRITE) {
502503
/*

0 commit comments

Comments
 (0)