staging/lustre/llite: Remove unnecessary check for NULL before iput()
authorTobias Klauser <tklauser@distanz.ch>
Mon, 26 May 2014 09:08:18 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 May 2014 17:33:49 +0000 (10:33 -0700)
iput() already checks for the inode being NULL, thus it's unnecessary to
check before calling.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c

index 7372986ac145923b9ae9535dab1f33fe10133158..deca27ea33fea1c95fb1d8fa78e7f9d505ffc9d0 100644 (file)
@@ -591,8 +591,7 @@ static int client_common_fill_super(struct super_block *sb, char *md, char *dt,
 
        return err;
 out_root:
-       if (root)
-               iput(root);
+       iput(root);
 out_lock_cn_cb:
        obd_fid_fini(sbi->ll_dt_exp->exp_obd);
 out_dt: