Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: imx: Remove error print for devm_add_action_or_reset()

When `devm_add_action_or_reset()` fails, it is due to a failed memory
allocation and will thus return `-ENOMEM`. `dev_err_probe()` doesn't do
anything when error is `-ENOMEM`. Therefore, remove the useless call to
`dev_err_probe()` when `devm_add_action_or_reset()` fails, and just
return the value instead.

Signed-off-by: Waqar Hameed <waqar.hameed@axis.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/pndpldam7tf.a.out@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Waqar Hameed and committed by
Mark Brown
9d6a5165 8ed2dca4

+1 -1
+1 -1
sound/soc/sof/imx/imx-common.c
··· 382 382 imx_unregister_action, 383 383 sdev); 384 384 if (ret) 385 - return dev_err_probe(sdev->dev, ret, "failed to add devm action\n"); 385 + return ret; 386 386 387 387 common->ipc_handle = dev_get_drvdata(&common->ipc_dev->dev); 388 388 if (!common->ipc_handle)