Even if we successfully parse a manifest we are returning
failure. Instead, we now proudly proclaim success.
Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
if (desc_size <= 0) {
if (!desc_size)
pr_err("zero-sized manifest descriptor\n");
+ result = false;
goto out;
}
desc = (struct greybus_descriptor *)((char *)desc + desc_size);
if (found != 1) {
pr_err("manifest must have 1 module descriptor (%u found)\n",
found);
+ result = false;
goto out;
}
out:
release_manifest_descriptors();
- return false;
+ return result;
}