Commit bcffa060 authored by Swee Hua Law's avatar Swee Hua Law Committed by Greg Kroah-Hartman

staging: lustre: checkpatch: symbol == NULL should be !symbol

Fix checkpatch problem: change == NULL comparison to !symbol
Signed-off-by: default avatarSwee Hua Law <sweehua81@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1b680a81
...@@ -184,7 +184,7 @@ int ll_update_remote_perm(struct inode *inode, struct mdt_remote_perm *perm) ...@@ -184,7 +184,7 @@ int ll_update_remote_perm(struct inode *inode, struct mdt_remote_perm *perm)
if (!lli->lli_remote_perms) { if (!lli->lli_remote_perms) {
perm_hash = alloc_rmtperm_hash(); perm_hash = alloc_rmtperm_hash();
if (perm_hash == NULL) { if (!perm_hash) {
CERROR("alloc lli_remote_perms failed!\n"); CERROR("alloc lli_remote_perms failed!\n");
return -ENOMEM; return -ENOMEM;
} }
...@@ -287,7 +287,7 @@ int lustre_check_remote_perm(struct inode *inode, int mask) ...@@ -287,7 +287,7 @@ int lustre_check_remote_perm(struct inode *inode, int mask)
perm = req_capsule_server_swab_get(&req->rq_pill, &RMF_ACL, perm = req_capsule_server_swab_get(&req->rq_pill, &RMF_ACL,
lustre_swab_mdt_remote_perm); lustre_swab_mdt_remote_perm);
if (unlikely(perm == NULL)) { if (unlikely(!perm)) {
mutex_unlock(&lli->lli_rmtperm_mutex); mutex_unlock(&lli->lli_rmtperm_mutex);
rc = -EPROTO; rc = -EPROTO;
break; break;
......
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