Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753037AbcKHGCn (ORCPT ); Tue, 8 Nov 2016 01:02:43 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:57071 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752503AbcKHGCm (ORCPT ); Tue, 8 Nov 2016 01:02:42 -0500 X-AuditID: cbfee61a-f79916d0000062de-e5-58216a7aa961 From: Ravikant Bijendra Sharma To: Russell King , David Airlie Cc: dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, Ravikant Bijendra Sharma , shailesh pandey , vidushi.koul@samsung.com, linux-kernel@vger.kernel.org Subject: [PATCH] drm/armada: Fix NULL pointer comparison warning Date: Tue, 08 Nov 2016 11:30:09 +0530 Message-id: <1478584809-4423-1-git-send-email-ravikant.s2@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrELMWRmVeSWpSXmKPExsVy+t9jAd3qLMUIg8OfWCx6z51ksthz5he7 xZWv79ksLu+aw2bRs2Erq8WOKa0sFk0Ns9ktLvVPZLL4e/ESmwOnx+VrF5k97u07zOKx/dsD Vo/73ceZPPq2rGL0+LxJLoAtys0mIzUxJbVIITUvOT8lMy/dVik0xE3XQkkhLzE31VYpQtc3 JEhJoSwxpxTIMzJAAw7OAe7BSvp2CW4ZS051sRQcYKv4/HkRWwPjLtYuRk4OCQETidt39zFC 2GISF+6tZ+ti5OIQEljKKPGk9yUjhPOTUeJCRwuQw8HBJmAh8W5RHkiDiICfxMpVr1lBapgF fjFK7PhxEWySsICDxPeud2AbWARUJT5vuskG0ssr4Cax4YcqiCkhoCAxZ5LNBEbuBYwMqxgl UguSC4qT0nMN81LL9YoTc4tL89L1kvNzNzGCw/eZ1A7Gg7vcDzEKcDAq8fB2yChGCLEmlhVX 5h5ilOBgVhLhtcwACvGmJFZWpRblxxeV5qQWH2I0BVo/kVlKNDkfGFt5JfGGJuYm5sYGFuaW liZGSuK8jbOfhQsJpCeWpGanphakFsH0MXFwSjUw5utvn1BQvbrd7lrLXRuF027fD9cpf1e5 X3U4s9VJLOFYT9Cj+kDpdXvVrpVahmteOXx+SsmOtdelD/iwWqftWL9hes3c4Nn2J/5yr/6+ /9DhOKXzrBdX1J51UdhT0/ZS7K/PGjm1wMnTgv79Xf42iftBuO+DNyHG2wyuz9/4JD9RfYqs qdqRFCWW4oxEQy3mouJEAE7VS8R1AgAA X-MTR: 20000000000000000@CPGS Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 805 Lines: 25 From: Ravikant B Sharma Replace direct comparisons to NULL i.e. 'x == NULL' with '!x'. As per coding standard. Signed-off-by: Ravikant B Sharma --- drivers/gpu/drm/armada/armada_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/armada/armada_debugfs.c b/drivers/gpu/drm/armada/armada_debugfs.c index d4f7ab0..90222e6 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; } -- 1.7.9.5