[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190304170636.4340-1-adamski.dominik@gmail.com>
Date: Mon, 4 Mar 2019 18:06:36 +0100
From: Dominik Adamski <adamski.dominik@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: adamski.dominik@...il.com, Johan Hovold <johan@...nel.org>,
Alex Elder <elder@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
greybus-dev@...ts.linaro.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: greybus: bundle.c fix comparison to NULL
Fix checkpatch issue:
Comparison to NULL could be written "!bundle->state"
Signed-off-by: Dominik Adamski <adamski.dominik@...il.com>
---
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..3f702db9e098 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);
--
2.19.1
Powered by blists - more mailing lists