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>
This commit is contained in:
Viresh Kumar 2015-03-24 17:08:14 +05:30 committed by Greg Kroah-Hartman
parent 19b3b2c2ae
commit 13fe6a9af3
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}