summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus
diff options
context:
space:
mode:
authorNishka Dasgupta <nishka.dasgupta@yahoo.com>2019-03-04 23:13:15 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-18 07:05:18 +0100
commit35defd6dd1626ead22fb6cf5332ca3fbcf3bfe87 (patch)
treeecbe136c65a5e0e92c769b6f406bcf0cd1371a69 /drivers/staging/greybus
parent1d4c11dd7849410bda35ba0b54fd32764ed5a78e (diff)
staging: greybus: Change NULL comparison to Boolean Negation
Change NULL comparison to boolean negation. Issue found by Checkpatch. Signed-off-by: Nishka Dasgupta <nishka.dasgupta@yahoo.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r--drivers/staging/greybus/bundle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c
index e97b2b87ba47..376ca53f0d83 100644
--- a/drivers/staging/greybus/bundle.c
+++ b/drivers/staging/greybus/bundle.c
@@ -32,7 +32,7 @@ static ssize_t state_show(struct device *dev, struct device_attribute *attr,
{
struct gb_bundle *bundle = to_gb_bundle(dev);
- if (bundle->state == NULL)
+ if (!(bundle->state))
return sprintf(buf, "\n");
return sprintf(buf, "%s\n", bundle->state);