summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChase Metzger <chasemetzger15@gmail.com>2016-10-06 19:38:41 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-10-16 10:24:21 +0200
commit02ae32f754a6cb006a7dc5305bf6e5ade1a95095 (patch)
treeba5703e4ed098066aa8f4d8ea4bfdc518d6eba94 /drivers
parenta2a87b224b33f30ca5172945c132e39260e95403 (diff)
downloadlinux-02ae32f754a6cb006a7dc5305bf6e5ade1a95095.tar.bz2
drivers: staging: greybus: Fixed CHECKS for brace issues
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/audio_topology.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio_topology.c
index 5c76067a55f7..8b216ca99cf9 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,