Commit 02ae32f7 authored by Chase Metzger's avatar Chase Metzger Committed by Greg Kroah-Hartman

drivers: staging: greybus: Fixed CHECKS for brace issues

Added braces to else statements where checkpatch complained.
Signed-off-by: default avatarChase Metzger <chasemetzger15@gmail.com>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarVaibhav Agarwal <vaibhav.sr@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a2a87b22
......@@ -1045,8 +1045,10 @@ static int gbaudio_tplg_create_widget(struct gbaudio_module_info *module,
control->texts = (const char * const *)
gb_generate_enum_strings(module, gbenum);
control->items = gbenum->items;
} else
} else {
csize = sizeof(struct gb_audio_control);
}
*w_size += csize;
curr = (void *)curr + csize;
list_add(&control->list, &module->widget_ctl_list);
......@@ -1191,8 +1193,9 @@ static int gbaudio_tplg_process_kcontrols(struct gbaudio_module_info *module,
control->texts = (const char * const *)
gb_generate_enum_strings(module, gbenum);
control->items = gbenum->items;
} else
} else {
csize = sizeof(struct gb_audio_control);
}
list_add(&control->list, &module->ctl_list);
dev_dbg(module->dev, "%d:%s created of type %d\n", curr->id,
......
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