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: ux500: Remove redundant casts

In the function ux500_msp_drv_probe, the 'int' type cast
in front of the PTR_ERR() macro is redundant, thus remove
it.

Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241107075440.2770-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Tang Bin and committed by
Mark Brown
fa24fdc8 7a117225

+3 -3
+3 -3
sound/soc/ux500/ux500_msp_dai.c
··· 733 733 734 734 drvdata->reg_vape = devm_regulator_get(&pdev->dev, "v-ape"); 735 735 if (IS_ERR(drvdata->reg_vape)) { 736 - ret = (int)PTR_ERR(drvdata->reg_vape); 736 + ret = PTR_ERR(drvdata->reg_vape); 737 737 dev_err(&pdev->dev, 738 738 "%s: ERROR: Failed to get Vape supply (%d)!\n", 739 739 __func__, ret); ··· 743 743 744 744 drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); 745 745 if (IS_ERR(drvdata->pclk)) { 746 - ret = (int)PTR_ERR(drvdata->pclk); 746 + ret = PTR_ERR(drvdata->pclk); 747 747 dev_err(&pdev->dev, 748 748 "%s: ERROR: devm_clk_get of pclk failed (%d)!\n", 749 749 __func__, ret); ··· 752 752 753 753 drvdata->clk = devm_clk_get(&pdev->dev, NULL); 754 754 if (IS_ERR(drvdata->clk)) { 755 - ret = (int)PTR_ERR(drvdata->clk); 755 + ret = PTR_ERR(drvdata->clk); 756 756 dev_err(&pdev->dev, 757 757 "%s: ERROR: devm_clk_get failed (%d)!\n", 758 758 __func__, ret);