Commit e8e11817 authored by Ravikant B Sharma's avatar Ravikant B Sharma Committed by Russell King

drm/armada: fix NULL pointer comparison warning

Replace direct comparisons to NULL i.e.
'x == NULL' with '!x'. As per coding standard.
Signed-off-by: default avatarRavikant B Sharma <ravikant.s2@samsung.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
parent 6f3723c1
...@@ -113,7 +113,7 @@ static int drm_add_fake_info_node(struct drm_minor *minor, struct dentry *ent, ...@@ -113,7 +113,7 @@ static int drm_add_fake_info_node(struct drm_minor *minor, struct dentry *ent,
struct drm_info_node *node; struct drm_info_node *node;
node = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL); node = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL);
if (node == NULL) { if (!node) {
debugfs_remove(ent); debugfs_remove(ent);
return -ENOMEM; return -ENOMEM;
} }
......
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