diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2015-04-30 13:16:35 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-04 08:24:03 -0400 |
commit | ce883ccfef043257a3d679d389444ea805006587 (patch) | |
tree | 24b80677fd63a2a3fb5f0b900d3212ec184cbe7d | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
ASoC: qcom: Remove redundant error check.
This patch remove redundant check after request_resource as ioremap would
do the check anyway.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/qcom/lpass-cpu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 6698d058de29..1e284c667aa9 100644 --- a/sound/soc/qcom/lpass-cpu.c +++ b/sound/soc/qcom/lpass-cpu.c | |||
@@ -380,10 +380,6 @@ static int lpass_cpu_platform_probe(struct platform_device *pdev) | |||
380 | platform_set_drvdata(pdev, drvdata); | 380 | platform_set_drvdata(pdev, drvdata); |
381 | 381 | ||
382 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif"); | 382 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "lpass-lpaif"); |
383 | if (!res) { | ||
384 | dev_err(&pdev->dev, "%s() error getting resource\n", __func__); | ||
385 | return -ENODEV; | ||
386 | } | ||
387 | 383 | ||
388 | drvdata->lpaif = devm_ioremap_resource(&pdev->dev, res); | 384 | drvdata->lpaif = devm_ioremap_resource(&pdev->dev, res); |
389 | if (IS_ERR((void const __force *)drvdata->lpaif)) { | 385 | if (IS_ERR((void const __force *)drvdata->lpaif)) { |