mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
ASoC: rockchip: i2s-tdm: Inline PTR_ERR() in dev_err_probe()
Pass PTR_ERR() directly to dev_err_probe() and avoid assigning it to the local variable first. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260806052136.21034-7-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
be4f82d152
commit
334d5ea758
|
|
@ -1263,16 +1263,14 @@ static int rockchip_i2s_tdm_probe(struct platform_device *pdev)
|
|||
i2s_tdm->tx_reset = devm_reset_control_get_optional_exclusive(&pdev->dev,
|
||||
"tx-m");
|
||||
if (IS_ERR(i2s_tdm->tx_reset)) {
|
||||
ret = PTR_ERR(i2s_tdm->tx_reset);
|
||||
return dev_err_probe(i2s_tdm->dev, ret,
|
||||
return dev_err_probe(i2s_tdm->dev, PTR_ERR(i2s_tdm->tx_reset),
|
||||
"Error in tx-m reset control\n");
|
||||
}
|
||||
|
||||
i2s_tdm->rx_reset = devm_reset_control_get_optional_exclusive(&pdev->dev,
|
||||
"rx-m");
|
||||
if (IS_ERR(i2s_tdm->rx_reset)) {
|
||||
ret = PTR_ERR(i2s_tdm->rx_reset);
|
||||
return dev_err_probe(i2s_tdm->dev, ret,
|
||||
return dev_err_probe(i2s_tdm->dev, PTR_ERR(i2s_tdm->rx_reset),
|
||||
"Error in rx-m reset control\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user