From: Chase Metzger Date: Fri, 7 Oct 2016 02:38:41 +0000 (-0700) Subject: drivers: staging: greybus: Fixed CHECKS for brace issues X-Git-Tag: v4.14-rc1~1919^2~791 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02ae32f754a6cb006a7dc5305bf6e5ade1a95095;p=platform%2Fkernel%2Flinux-rpi.git drivers: staging: greybus: Fixed CHECKS for brace issues Added braces to else statements where checkpatch complained. Signed-off-by: Chase Metzger Acked-by: Viresh Kumar Reviewed-by: Vaibhav Agarwal Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio_topology.c index 5c76067..8b216ca 100644 --- a/drivers/staging/greybus/audio_topology.c +++ b/drivers/staging/greybus/audio_topology.c @@ -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,