[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211210023211.424609-1-chi.minghao@zte.com.cn>
Date: Fri, 10 Dec 2021 02:32:11 +0000
From: cgel.zte@...il.com
To: christian.brauner@...ntu.com
Cc: chi.minghao@....com.cn, jack@...e.cz, akpm@...ux-foundation.org,
gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
Zeal Robot <zealci@....com.cm>
Subject: [PATCH] fs/adfs: remove unneeded variable make code cleaner
From: Minghao Chi <chi.minghao@....com.cn>
return value form directly instead of
taking this in another redundant variable.
Reported-by: Zeal Robot <zealci@....com.cm>
Signed-off-by: Minghao Chi <chi.minghao@....com.cn>
---
fs/adfs/inode.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c
index adbb3a1edcbf..5156821bfe6a 100644
--- a/fs/adfs/inode.c
+++ b/fs/adfs/inode.c
@@ -355,7 +355,6 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
{
struct super_block *sb = inode->i_sb;
struct object_info obj;
- int ret;
obj.indaddr = ADFS_I(inode)->indaddr;
obj.name_len = 0;
@@ -365,6 +364,5 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
obj.attr = ADFS_I(inode)->attr;
obj.size = inode->i_size;
- ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
- return ret;
+ return adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
}
--
2.25.1
Powered by blists - more mailing lists