[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260122000451.160907-1-william.hansen.baird@gmail.com>
Date: Wed, 21 Jan 2026 19:04:33 -0500
From: William Hansen-Baird <william.hansen.baird@...il.com>
To: linkinjeon@...nel.org,
sj1557.seo@...sung.com
Cc: yuezhang.mo@...y.com,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
William Hansen-Baird <william.hansen.baird@...il.com>
Subject: [PATCH 1/2] 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@...il.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
Powered by blists - more mailing lists