From: Viresh Kumar Date: Thu, 13 Nov 2014 12:44:31 +0000 (+0530) Subject: greybus: manifest: initialize variable during definition X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ed16a81c179d8e72bd127067e344959d1d6b1be;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: manifest: initialize variable during definition Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/manifest.c b/drivers/staging/greybus/manifest.c index ebc24940d672..964f85ed603c 100644 --- a/drivers/staging/greybus/manifest.c +++ b/drivers/staging/greybus/manifest.c @@ -183,10 +183,9 @@ static u32 gb_manifest_parse_cports(struct gb_interface *interface) struct greybus_descriptor_cport *desc_cport; u8 protocol_id; u16 cport_id; - bool found; + bool found = false; /* Find a cport descriptor */ - found = false; list_for_each_entry(descriptor, &manifest_descs, links) { if (descriptor->type == GREYBUS_TYPE_CPORT) { desc_cport = descriptor->data;