projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9276e33
)
exfat: remove unnecessary else after return statement
author
William Hansen-Baird
<william.hansen.baird@gmail.com>
Thu, 22 Jan 2026 00:04:33 +0000
(19:04 -0500)
committer
Namjae Jeon
<linkinjeon@kernel.org>
Thu, 12 Feb 2026 12:21:51 +0000
(21:21 +0900)
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>
fs/exfat/inode.c
patch
|
blob
|
history
diff --git
a/fs/exfat/inode.c
b/fs/exfat/inode.c
index
86bce7e
..
2fb2d2d
100644
(file)
--- 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) {
/*