summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/armada
diff options
context:
space:
mode:
authorRavikant B Sharma <ravikant.s2@samsung.com>2016-11-08 11:30:09 +0530
committerRussell King <rmk+kernel@armlinux.org.uk>2016-11-17 00:02:50 +0000
commite8e11817e2ff18f35de932cdd2738cad5567cb7c (patch)
tree11e83b32d1b9baa2109cab848fa69221246b86d8 /drivers/gpu/drm/armada
parent6f3723c15ab8382fd68f314cac0439bf91f978f9 (diff)
downloadblackbird-op-linux-e8e11817e2ff18f35de932cdd2738cad5567cb7c.tar.gz
blackbird-op-linux-e8e11817e2ff18f35de932cdd2738cad5567cb7c.zip
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: Ravikant B Sharma <ravikant.s2@samsung.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpu/drm/armada')
-rw-r--r--drivers/gpu/drm/armada/armada_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c
index d4f7ab0a30d4..90222e60d2d6 100644
--- a/drivers/gpu/drm/armada/armada_debugfs.c
+++ b/drivers/gpu/drm/armada/armada_debugfs.c
@@ -113,7 +113,7 @@ static int drm_add_fake_info_node(struct drm_minor *minor, struct dentry *ent,
struct drm_info_node *node;
node = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL);
- if (node == NULL) {
+ if (!node) {
debugfs_remove(ent);
return -ENOMEM;
}
OpenPOWER on IntegriCloud