From: Nishka Dasgupta Date: Mon, 4 Mar 2019 17:43:15 +0000 (+0530) Subject: staging: greybus: Change NULL comparison to Boolean Negation X-Git-Tag: v5.2-rc1~153^2~489 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=35defd6dd1626ead22fb6cf5332ca3fbcf3bfe87;p=users%2Fdwmw2%2Flinux.git 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 --- diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index e97b2b87ba475..376ca53f0d83a 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);