mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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>
This commit is contained in:
parent
1d4c11dd78
commit
35defd6dd1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue