Skip to content

Commit e358e01

Browse files
jhovoldbroonie
authored andcommitted
ASoC: codecs: wcd938x: drop unnecessary mux flag assignment
The codec driver data is allocated using kzalloc() so there's no need to clear the mux setup flag when mux selection fails during probe. Signed-off-by: Johan Hovold <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent d1407c9 commit e358e01

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/soc/codecs/wcd938x.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3280,7 +3280,6 @@ static int wcd938x_populate_dt_data(struct wcd938x_priv *wcd938x, struct device
32803280
ret = mux_control_try_select(wcd938x->us_euro_mux, wcd938x->mux_state);
32813281
if (ret) {
32823282
dev_err(dev, "Error (%d) Unable to select us/euro mux state\n", ret);
3283-
wcd938x->mux_setup_done = false;
32843283
return ret;
32853284
}
32863285
wcd938x->mux_setup_done = true;

0 commit comments

Comments
 (0)