Skip to content

Commit fa24fdc

Browse files
Tang Binbroonie
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 7a11722 commit fa24fdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/ux500/ux500_msp_dai.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static int ux500_msp_drv_probe(struct platform_device *pdev)
733733

734734
drvdata->reg_vape = devm_regulator_get(&pdev->dev, "v-ape");
735735
if (IS_ERR(drvdata->reg_vape)) {
736-
ret = (int)PTR_ERR(drvdata->reg_vape);
736+
ret = PTR_ERR(drvdata->reg_vape);
737737
dev_err(&pdev->dev,
738738
"%s: ERROR: Failed to get Vape supply (%d)!\n",
739739
__func__, ret);
@@ -743,7 +743,7 @@ static int ux500_msp_drv_probe(struct platform_device *pdev)
743743

744744
drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
745745
if (IS_ERR(drvdata->pclk)) {
746-
ret = (int)PTR_ERR(drvdata->pclk);
746+
ret = PTR_ERR(drvdata->pclk);
747747
dev_err(&pdev->dev,
748748
"%s: ERROR: devm_clk_get of pclk failed (%d)!\n",
749749
__func__, ret);
@@ -752,7 +752,7 @@ static int ux500_msp_drv_probe(struct platform_device *pdev)
752752

753753
drvdata->clk = devm_clk_get(&pdev->dev, NULL);
754754
if (IS_ERR(drvdata->clk)) {
755-
ret = (int)PTR_ERR(drvdata->clk);
755+
ret = PTR_ERR(drvdata->clk);
756756
dev_err(&pdev->dev,
757757
"%s: ERROR: devm_clk_get failed (%d)!\n",
758758
__func__, ret);

0 commit comments

Comments
 (0)