diff options
| author | Minghao Chi <[email protected]> | 2022-08-19 08:18:19 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 21:55:07 -0700 |
| commit | cba7543e1515e79a85d37df85a0eb2cf0f07d115 (patch) | |
| tree | f6469b9dca10749aaff28b76b19cef27113167c1 | |
| parent | 2be9880dc87342dc7ae459c9ea5c9ee2a45b33d8 (diff) | |
fs/qnx6: delete unnecessary checks before brelse()
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/[email protected]
Signed-off-by: Minghao Chi <[email protected]>
Reported-by: Zeal Robot <[email protected]>
Cc: CGEL ZTE <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Minghao Chi <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Theodore Ts'o <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
| -rw-r--r-- | fs/qnx6/inode.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c index b9895afca9d1..85b2fa3b211c 100644 --- a/fs/qnx6/inode.c +++ b/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; |