The patch titled Subject: fs/adfs: remove unneeded variable make code cleaner has been added to the -mm tree. Its filename is fs-adfs-remove-unneeded-variable-make-code-cleaner.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/fs-adfs-remove-unneeded-variable-make-code-cleaner.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/fs-adfs-remove-unneeded-variable-make-code-cleaner.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: cgel.zte@xxxxxxxxx Subject: fs/adfs: remove unneeded variable make code cleaner return value form directly instead of taking this in another redundant variable. Link: https://lkml.kernel.org/r/20211210023211.424609-1-chi.minghao@xxxxxxxxxx Signed-off-by: Minghao Chi <chi.minghao@xxxxxxxxxx> Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Cc: Christian Brauner <christian.brauner@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/adfs/inode.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/fs/adfs/inode.c~fs-adfs-remove-unneeded-variable-make-code-cleaner +++ a/fs/adfs/inode.c @@ -355,7 +355,6 @@ int adfs_write_inode(struct inode *inode { 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 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); } _ Patches currently in -mm which might be from chi.minghao@xxxxxxxxxx are mm-remove-unneeded-variable.patch selftests-vm-use-swap-to-make-code-cleaner.patch fs-adfs-remove-unneeded-variable-make-code-cleaner.patch