From: Alex Elder Date: Wed, 5 Nov 2014 22:03:11 +0000 (-0600) Subject: greybus: control printing message X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=545a697512a0b9c08ae4f152b7dd146f02dcbb92;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Alex Elder Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/manifest.c b/drivers/staging/greybus/manifest.c index 2e22f545e15b..563463955cb0 100644 --- a/drivers/staging/greybus/manifest.c +++ b/drivers/staging/greybus/manifest.c @@ -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();