drivers: staging: greybus: audio_topology.c: Fixed CHECKS for brace issues
Subsystems (3)
PATCH 1/1 drivers: staging: greybus: audio_topology.c: Fixed CHECKS for brace issues
Added braces for else and else if statements where checkpatch complained.
Signed-off-by Chase Metzger <[email protected]>
--- drivers/staging/greybus/audio_topology.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/staging/greybus/audio_topology.c +5 -2
@@ -1044,8 +1044,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);
@@ -1190,8 +1192,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,
Signature · 1 line
2.1.4
Vaibhav Agarwal
maintainerQuoted 35 lines · Chase Metzger
Added braces for else and else if statements where checkpatch complained.
Signed-off-by Chase Metzger <[email protected]>--- drivers/staging/greybus/audio_topology.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)drivers/staging/greybus/audio_topology.c +5
-3@@ -1044,8 +1044,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);@@ -1190,8 +1192,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, --
Quoted 2 lines
2.1.4
You have already submitted a similar patch available on staging-testing branch:
commit b7e0c9eca426 ("drivers: staging: greybus: Fixed CHECKS for brace issues")
--
thanks,
./va