diff options
| author | William Hansen-Baird <william.hansen.baird@gmail.com> | 2026-01-21 19:04:33 -0500 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-02-12 21:21:51 +0900 |
| commit | 5e37a4577f95d93903c5754c6bac921ac39b557e (patch) | |
| tree | 7285db0732a025ef8186993148f3f44e6fdcf54b /fs | |
| parent | 9276e330c17b6c926bdc5da90cbc58d6c4f26298 (diff) | |
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>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/exfat/inode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index 86bce7ea2725..2fb2d2d5d503 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -495,8 +495,9 @@ static ssize_t exfat_direct_IO(struct kiocb *iocb, struct iov_iter *iter) exfat_write_failed(mapping, size); return ret; - } else - size = pos + ret; + } + + size = pos + ret; if (rw == WRITE) { /* |
