Commit 25d2e886 authored by Minghao Chi's avatar Minghao Chi Committed by Linus Torvalds

fs/adfs: remove unneeded variable make code cleaner

Return value directly instead of taking this in a variable.

Link: https://lkml.kernel.org/r/20211210023211.424609-1-chi.minghao@zte.com.cnSigned-off-by: default avatarMinghao Chi <chi.minghao@zte.com.cn>
Reported-by: default avatarZeal Robot <zealci@zte.com.cm>
Cc: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Jan Kara <jack@suse.cz>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9bb56d59
...@@ -355,7 +355,6 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) ...@@ -355,7 +355,6 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
{ {
struct super_block *sb = inode->i_sb; struct super_block *sb = inode->i_sb;
struct object_info obj; struct object_info obj;
int ret;
obj.indaddr = ADFS_I(inode)->indaddr; obj.indaddr = ADFS_I(inode)->indaddr;
obj.name_len = 0; obj.name_len = 0;
...@@ -365,6 +364,5 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc) ...@@ -365,6 +364,5 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
obj.attr = ADFS_I(inode)->attr; obj.attr = ADFS_I(inode)->attr;
obj.size = inode->i_size; obj.size = inode->i_size;
ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL); return adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
return ret;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment