mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-02 23:44:27 -05: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user