Commit 545a6975 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: control printing message

There's a message that gets printed in gb_manifest_parse() if excess
descriptors are found in the manifest.  This should only be printed
if the parse was successful.  If it was not successful it's not
really very helpful.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 0570afcf
......@@ -391,7 +391,7 @@ bool gb_manifest_parse(struct gb_module *gmod, void *data, size_t size)
* We really should have no remaining descriptors, but we
* don't know what newer format manifests might leave.
*/
if (!list_empty(&manifest_descs))
if (result && !list_empty(&manifest_descs))
pr_info("excess descriptors in module manifest\n");
out:
release_manifest_descriptors();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment