greybus: manifest: initialize variable during definition
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 13 Nov 2014 12:44:31 +0000 (18:14 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 14 Nov 2014 21:14:37 +0000 (13:14 -0800)
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/manifest.c

index ebc24940d67241bb6313a4a014d42b289ddb3249..964f85ed603cb7e8c825a955f8a94a5f977a55eb 100644 (file)
@@ -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;