The patch titled Subject: fs/qnx6: delete unnecessary checks before brelse() has been added to the -mm mm-nonmm-unstable branch. Its filename is fs-qnx6-delete-unnecessary-checks-before-brelse.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/fs-qnx6-delete-unnecessary-checks-before-brelse.patch This patch will later appear in the mm-nonmm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Minghao Chi <chi.minghao@xxxxxxxxxx> Subject: fs/qnx6: delete unnecessary checks before brelse() Date: Fri, 19 Aug 2022 08:18:19 +0000 brelse() tests whether its argument is NULL and then returns immediately. Thus remove the tests which are not needed around the shown calls. Link: https://lkml.kernel.org/r/20220819081819.96347-1-chi.minghao@xxxxxxxxxx Signed-off-by: Minghao Chi <chi.minghao@xxxxxxxxxx> Reported-by: Zeal Robot <zealci@xxxxxxxxxx> Cc: CGEL ZTE <cgel.zte@xxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxx> Cc: Minghao Chi <chi.minghao@xxxxxxxxxx> Cc: Muchun Song <songmuchun@xxxxxxxxxxxxx> Cc: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/qnx6/inode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/fs/qnx6/inode.c~fs-qnx6-delete-unnecessary-checks-before-brelse +++ a/fs/qnx6/inode.c @@ -470,10 +470,8 @@ out2: out1: iput(sbi->inodes); out: - if (bh1) - brelse(bh1); - if (bh2) - brelse(bh2); + brelse(bh1); + brelse(bh2); outnobh: kfree(qs); s->s_fs_info = NULL; _ Patches currently in -mm which might be from chi.minghao@xxxxxxxxxx are fs-qnx6-delete-unnecessary-checks-before-brelse.patch