summaryrefslogtreecommitdiff
path: root/fs/orangefs/acl.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-17 21:35:16 +0200
committerMike Marshall <hubcap@omnibond.com>2017-09-14 14:58:31 -0400
commit0b08273c8ab7e688832120c4817b1adfdc56e231 (patch)
treed0da15cfafc361208379e07dc2975f2777e287d7 /fs/orangefs/acl.c
parent5e273a0e06ee5a50bb9cd40026177feca060c101 (diff)
orangefs: Adjust three checks for null pointers
MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix affected source code places. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/acl.c')
-rw-r--r--fs/orangefs/acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/acl.c b/fs/orangefs/acl.c
index 45f27cf51fd8..9108ef433e6d 100644
--- a/fs/orangefs/acl.c
+++ b/fs/orangefs/acl.c
@@ -35,7 +35,7 @@ struct posix_acl *orangefs_get_acl(struct inode *inode, int type)
* I don't do that for now.
*/
value = kmalloc(ORANGEFS_MAX_XATTR_VALUELEN, GFP_KERNEL);
- if (value == NULL)
+ if (!value)
return ERR_PTR(-ENOMEM);
gossip_debug(GOSSIP_ACL_DEBUG,