From 4ed16a81c179d8e72bd127067e344959d1d6b1be Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 13 Nov 2014 18:14:31 +0530 Subject: [PATCH] greybus: manifest: initialize variable during definition Signed-off-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/manifest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.20.1