Whamcloud - gitweb
LU-6142 lustre: iput() can safely be passed NULL. 91/40291/3
authorMr NeilBrown <neilb@suse.de>
Thu, 15 Oct 2020 22:43:09 +0000 (09:43 +1100)
committerOleg Drokin <green@whamcloud.com>
Sat, 6 Mar 2021 02:34:44 +0000 (02:34 +0000)
commit650a6dec18306e566b46c3a7cd49cda2fd0b8c40
tree8428883b4c2d74cc20938398f59f54473a0308f6
parentf55fdfff5dede69e6674999fb02c1add513704f0
LU-6142 lustre: iput() can safely be passed NULL.

iput() is a no-op when passed a NULL pointer, so there is no
need to test for NULL before calling it - doing so clutters
the code.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Idcd1a6746ecc67dcfcb0713d2762ca0bdb29de19
Reviewed-on: https://review.whamcloud.com/40291
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Aurelien Degremont <degremoa@amazon.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/llite/dir.c
lustre/llite/llite_lib.c
lustre/llite/statahead.c
lustre/lmv/lmv_obd.c
lustre/osd-ldiskfs/osd_compat.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_scrub.c