From 35defd6dd1626ead22fb6cf5332ca3fbcf3bfe87 Mon Sep 17 00:00:00 2001 From: Nishka Dasgupta Date: Mon, 4 Mar 2019 23:13:15 +0530 Subject: [PATCH] staging: greybus: Change NULL comparison to Boolean Negation Change NULL comparison to boolean negation. Issue found by Checkpatch. Signed-off-by: Nishka Dasgupta Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/bundle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);