drivers: staging: greybus: Fixed CHECKS for brace issues
authorChase Metzger <chasemetzger15@gmail.com>
Fri, 7 Oct 2016 02:38:41 +0000 (19:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:21 +0000 (10:24 +0200)
Added braces to else statements where checkpatch complained.

Signed-off-by: Chase Metzger <chasemetzger15@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_topology.c

index 5c76067a55f7fd0a52c3ae717226160a43a86dd2..8b216ca99cf946ecf81f2a21b91517c506d4e9b4 100644 (file)
@@ -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,