diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-03-24 17:08:14 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-03-24 20:59:03 +0100 |
commit | 13fe6a9af3d86019a10bdbd3195434e5a795b3b3 (patch) | |
tree | 5c4ea0f70a0de00e9addc16fcb2ea99a01018887 /drivers/staging/greybus/manifest.c | |
parent | 19b3b2c2aeb7e1e787a65936ada0dabc229620ea (diff) |
greybus: manifest: don't need to check for desc_size == 0 anymore
identify_descriptor() doesn't return 0 anymore and so we don't need to check the
returned value against 0.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/manifest.c')
-rw-r--r-- | drivers/staging/greybus/manifest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/greybus/manifest.c b/drivers/staging/greybus/manifest.c index 545a3bd4e751..1b9edbcd08c5 100644 --- a/drivers/staging/greybus/manifest.c +++ b/drivers/staging/greybus/manifest.c @@ -383,9 +383,7 @@ bool gb_manifest_parse(struct gb_interface *intf, void *data, size_t size) int desc_size; desc_size = identify_descriptor(intf, desc, size); - if (desc_size <= 0) { - if (!desc_size) - pr_err("zero-sized manifest descriptor\n"); + if (desc_size < 0) { result = false; goto out; } |