mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 05:18:45 +02:00
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 <johan+linaro@kernel.org> Link: https://patch.msgid.link/20250415074145.7202-3-johan+linaro@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d1407c934f
commit
e358e012a6
|
|
@ -3280,7 +3280,6 @@ static int wcd938x_populate_dt_data(struct wcd938x_priv *wcd938x, struct device
|
|||
ret = mux_control_try_select(wcd938x->us_euro_mux, wcd938x->mux_state);
|
||||
if (ret) {
|
||||
dev_err(dev, "Error (%d) Unable to select us/euro mux state\n", ret);
|
||||
wcd938x->mux_setup_done = false;
|
||||
return ret;
|
||||
}
|
||||
wcd938x->mux_setup_done = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user