staging: greybus: bundle.c fix comparison to NULL
PATCH 1/1 staging: greybus: bundle.c fix comparison to NULL
Fix checkpatch issue:
Comparison to NULL could be written "!bundle->state"
Signed-off-by Dominik Adamski <[email protected]>
--- drivers/staging/greybus/bundle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/greybus/bundle.c +1 -1
@@ -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);
Signature · 1 line
2.19.1
Greg Kroah-Hartman
maintainerQuoted 13 lines · Dominik Adamski
Fix checkpatch issue:
Comparison to NULL could be written "!bundle->state"Signed-off-by Dominik Adamski <[email protected]>--- drivers/staging/greybus/bundle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/greybus/bundle.c +0
-0
drivers/staging/greybus/bundle.c static ssize_t state_show(struct device *dev, struct device_attribute *attr, · line 38
Quoted 8 lines
drivers/staging/greybus/bundle.c +1
-1@@ -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);
This does not apply to my tree, please rebase and resend.
thanks,
greg k-h