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:
parent
19b3b2c2ae
commit
13fe6a9af3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue