Commit 91167739 authored by Mario Bambagini's avatar Mario Bambagini Committed by Greg Kroah-Hartman

staging: lustre: modified comparisons against NULL

The explicit comparisons against NULL has been modified to be shorter.
Signed-off-by: default avatarMario Bambagini <mario.bambagini@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b0e2d62
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment