1
0
Fork 0

staging: greybus: shorten comparison to NULL

Shorten pointer NULL check by simple truth test.
Reported by checkpatch.

Signed-off-by: Ioannis Valasakis <code@wizofe.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Ioannis Valasakis 2018-11-09 13:53:24 +00:00 committed by Greg Kroah-Hartman
parent 7962e63a2f
commit 9b76530d39
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ static bool greybus_match_one_id(struct gb_bundle *bundle,
static const struct greybus_bundle_id *
greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id)
{
if (id == NULL)
if (!id)
return NULL;
for (; id->vendor || id->product || id->class || id->driver_info;