diff options
author | Ioannis Valasakis <code@wizofe.uk> | 2018-11-09 13:53:24 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-09 09:49:02 -0800 |
commit | 9b76530d39d5741f806b13ee380908fdc0dd948f (patch) | |
tree | 2397ea8da8481aa9a472f09e515a6ceb5e31863b /drivers/staging/greybus | |
parent | 7962e63a2f4140631ad10d475d96193a3bc8ec2f (diff) | |
download | linux-9b76530d39d5741f806b13ee380908fdc0dd948f.tar.bz2 |
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>
Diffstat (limited to 'drivers/staging/greybus')
-rw-r--r-- | drivers/staging/greybus/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index dafa430d176e..5d14a4e8dada 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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; |