Commit 35defd6d authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman
Browse files

staging: greybus: Change NULL comparison to Boolean Negation



Change NULL comparison to boolean negation. Issue found by Checkpatch.

Signed-off-by: default avatarNishka Dasgupta <nishka.dasgupta@yahoo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1d4c11dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);