mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] exfat: remove unnecessary else after return statement
@ 2026-01-22  0:04 William Hansen-Baird
  2026-01-22  0:04 ` [PATCH 2/2] exfat: add blank line after declarations William Hansen-Baird
  2026-01-22 11:52 ` [PATCH 1/2] exfat: remove unnecessary else after return statement Namjae Jeon
  0 siblings, 2 replies; 4+ messages in thread
From: William Hansen-Baird @ 2026-01-22  0:04 UTC (permalink / raw)
  To: linkinjeon, sj1557.seo
  Cc: yuezhang.mo, linux-fsdevel, linux-kernel, William Hansen-Baird

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>
---
 fs/exfat/inode.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c
index f9501c3a3666..234a9f41e083 100644
--- a/fs/exfat/inode.c
+++ b/fs/exfat/inode.c
@@ -511,8 +511,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) {
 		/*
-- 
2.52.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-01-22 11:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-22  0:04 [PATCH 1/2] exfat: remove unnecessary else after return statement William Hansen-Baird
2026-01-22  0:04 ` [PATCH 2/2] exfat: add blank line after declarations William Hansen-Baird
2026-01-22 11:52   ` Namjae Jeon
2026-01-22 11:52 ` [PATCH 1/2] exfat: remove unnecessary else after return statement Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®