Skip to content

Commit 25d2e88

Browse files
Minghao Chitorvalds
authored andcommitted
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.cn Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Reported-by: Zeal 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 9bb56d5 commit 25d2e88

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/adfs/inode.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
355355
{
356356
struct super_block *sb = inode->i_sb;
357357
struct object_info obj;
358-
int ret;
359358

360359
obj.indaddr = ADFS_I(inode)->indaddr;
361360
obj.name_len = 0;
@@ -365,6 +364,5 @@ int adfs_write_inode(struct inode *inode, struct writeback_control *wbc)
365364
obj.attr = ADFS_I(inode)->attr;
366365
obj.size = inode->i_size;
367366

368-
ret = adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
369-
return ret;
367+
return adfs_dir_update(sb, &obj, wbc->sync_mode == WB_SYNC_ALL);
370368
}

0 commit comments

Comments
 (0)