From: Mario Bambagini Date: Tue, 28 Jul 2015 20:08:51 +0000 (+0200) Subject: staging: lustre: modified comparisons against NULL X-Git-Tag: v4.14-rc1~4839^2~333 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=911677393b13a3f2fc6db2e297b336fb2669f0f1;p=platform%2Fkernel%2Flinux-rpi.git staging: lustre: modified comparisons against NULL The explicit comparisons against NULL has been modified to be shorter. Signed-off-by: Mario Bambagini Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/llite_capa.c b/drivers/staging/lustre/lustre/llite/llite_capa.c index a3b3c46..7768c6d8 100644 --- a/drivers/staging/lustre/lustre/llite/llite_capa.c +++ b/drivers/staging/lustre/lustre/llite/llite_capa.c @@ -236,7 +236,7 @@ static int capa_thread_main(void *unused) /* NB iput() is in ll_update_capa() */ inode = igrab(ocapa->u.cli.inode); - if (inode == NULL) { + if (!inode) { DEBUG_CAPA(D_ERROR, &ocapa->c_capa, "igrab failed for"); continue; @@ -380,7 +380,7 @@ struct obd_capa *ll_mdscapa_get(struct inode *inode) struct ll_inode_info *lli = ll_i2info(inode); struct obd_capa *ocapa; - LASSERT(inode != NULL); + LASSERT(inode); if ((ll_i2sbi(inode)->ll_flags & LL_SBI_MDS_CAPA) == 0) return NULL;