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>
diff --git a/drivers/staging/greybus/manifest.c b/drivers/staging/greybus/manifest.c
index 545a3bd..1b9edbc 100644
--- a/drivers/staging/greybus/manifest.c
+++ b/drivers/staging/greybus/manifest.c
@@ -383,9 +383,7 @@
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;
}