Commit 4ed16a81 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: manifest: initialize variable during definition

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 43d9431f
...@@ -183,10 +183,9 @@ static u32 gb_manifest_parse_cports(struct gb_interface *interface) ...@@ -183,10 +183,9 @@ static u32 gb_manifest_parse_cports(struct gb_interface *interface)
struct greybus_descriptor_cport *desc_cport; struct greybus_descriptor_cport *desc_cport;
u8 protocol_id; u8 protocol_id;
u16 cport_id; u16 cport_id;
bool found; bool found = false;
/* Find a cport descriptor */ /* Find a cport descriptor */
found = false;
list_for_each_entry(descriptor, &manifest_descs, links) { list_for_each_entry(descriptor, &manifest_descs, links) {
if (descriptor->type == GREYBUS_TYPE_CPORT) { if (descriptor->type == GREYBUS_TYPE_CPORT) {
desc_cport = descriptor->data; desc_cport = descriptor->data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment