[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210115034327.617223-4-swboyd@chromium.org>
Date: Thu, 14 Jan 2021 19:43:26 -0800
From: Stephen Boyd <swboyd@...omium.org>
To: Mark Brown <broonie@...nel.org>
Cc: linux-kernel@...r.kernel.org, Liam Girdwood <lgirdwood@...il.com>,
Banajit Goswami <bgoswami@...eaurora.org>,
linux-arm-msm@...r.kernel.org, Patrick Lai <plai@...eaurora.org>,
alsa-devel@...a-project.org,
V Sujith Kumar Reddy <vsujithk@...eaurora.org>,
Srinivasa Rao <srivasam@...eaurora.org>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Cheng-Yi Chiang <cychiang@...omium.org>
Subject: [PATCH 3/4] ASoC: qcom: Stop casting away __iomem for error pointers
We don't need to cast away __iomem when testing with IS_ERR() or
converting with PTR_ERR(). Modern sparse can handle this just fine.
Drop it.
Cc: V Sujith Kumar Reddy <vsujithk@...eaurora.org>
Cc: Srinivasa Rao <srivasam@...eaurora.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Cc: Cheng-Yi Chiang <cychiang@...omium.org>
Signed-off-by: Stephen Boyd <swboyd@...omium.org>
---
sound/soc/qcom/lpass-cpu.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c
index 40126202a4a3..b267fe8db3fc 100644
--- a/sound/soc/qcom/lpass-cpu.c
+++ b/sound/soc/qcom/lpass-cpu.c
@@ -788,10 +788,10 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif");
drvdata->lpaif = devm_ioremap_resource(dev, res);
- if (IS_ERR((void const __force *)drvdata->lpaif)) {
+ if (IS_ERR(drvdata->lpaif)) {
dev_err(dev, "error mapping reg resource: %ld\n",
- PTR_ERR((void const __force *)drvdata->lpaif));
- return PTR_ERR((void const __force *)drvdata->lpaif);
+ PTR_ERR(drvdata->lpaif));
+ return PTR_ERR(drvdata->lpaif);
}
lpass_cpu_regmap_config.max_register = LPAIF_WRDMAPER_REG(variant,
@@ -810,10 +810,10 @@ int asoc_qcom_lpass_cpu_platform_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-hdmiif");
drvdata->hdmiif = devm_ioremap_resource(dev, res);
- if (IS_ERR((void const __force *)drvdata->hdmiif)) {
+ if (IS_ERR(drvdata->hdmiif)) {
dev_err(dev, "error mapping reg resource: %ld\n",
- PTR_ERR((void const __force *)drvdata->hdmiif));
- return PTR_ERR((void const __force *)drvdata->hdmiif);
+ PTR_ERR(drvdata->hdmiif));
+ return PTR_ERR(drvdata->hdmiif);
}
lpass_hdmi_regmap_config.max_register = LPAIF_HDMI_RDMAPER_REG(variant,
--
https://chromeos.dev
Powered by blists - more mailing lists