diff options
author | Yi Li <[email protected]> | 2021-02-24 12:00:34 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2021-02-24 13:38:26 -0800 |
commit | 6efb59499aff080e6a9f1485ff968918c30c5b0c (patch) | |
tree | cf542848cf7c9965fdc1b282556ebbf5c18f45e7 | |
parent | 4dfe6bd94959222e18d512bdf15f6bf9edb9c27c (diff) |
ocfs2: remove redundant conditional before iput
iput handles NULL pointers gracefully, so there's no need to check the
pointer before the call.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Yi Li <[email protected]>
Acked-by: Joseph Qi <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Junxiao Bi <[email protected]>
Cc: Changwei Ge <[email protected]>
Cc: Gang He <[email protected]>
Cc: Jun Piao <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | fs/ocfs2/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c index 2febc76e9de7..079f8826993e 100644 --- a/fs/ocfs2/super.c +++ b/fs/ocfs2/super.c @@ -973,8 +973,6 @@ static void ocfs2_disable_quotas(struct ocfs2_super *osb) * quota files */ dquot_disable(sb, type, DQUOT_USAGE_ENABLED | DQUOT_LIMITS_ENABLED); - if (!inode) - continue; iput(inode); } } |