mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
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>
This commit is contained in:
parent
a2a87b224b
commit
02ae32f754
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user