summaryrefslogtreecommitdiffstats
path: root/drivers/char/ipmi
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-09-24 12:02:54 +0000
committerCorey Minyard <cminyard@mvista.com>2016-09-30 09:23:22 -0500
commitd94655b405ba08838fb3db301dddb02a435ae16c (patch)
tree917a4c878897605c5aa6fa0034a46e9bbfad776b /drivers/char/ipmi
parenta3e6061bad6292f2d5be3c1c4ccf1fa136517dec (diff)
downloadlinux-d94655b405ba08838fb3db301dddb02a435ae16c.tar.gz
linux-d94655b405ba08838fb3db301dddb02a435ae16c.tar.bz2
linux-d94655b405ba08838fb3db301dddb02a435ae16c.zip
ipmi/bt-bmc: remove redundant return value check of platform_get_resource()
Remove unneeded error handling on the result of a call to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r--drivers/char/ipmi/bt-bmc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/char/ipmi/bt-bmc.c b/drivers/char/ipmi/bt-bmc.c
index de64bf1f2f4d..b49e61320952 100644
--- a/drivers/char/ipmi/bt-bmc.c
+++ b/drivers/char/ipmi/bt-bmc.c
@@ -432,11 +432,6 @@ static int bt_bmc_probe(struct platform_device *pdev)
dev_set_drvdata(&pdev->dev, bt_bmc);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(dev, "Unable to find resources\n");
- return -ENXIO;
- }
-
bt_bmc->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(bt_bmc->base))
return PTR_ERR(bt_bmc->base);