“e350d44fed8eb86a7192a579e3687fcd76a4645b”上不存在“drivers/media/v4l2-core/tuner-core.c”
提交 c176d1c7 编写于 作者: W Wei Yongjun 提交者: Bjorn Helgaas

PCI: rcar: Fix rcar_pci_probe() return value check

In case of error, the function devm_ioremap_resource() returns ERR_PTR()
and never returns NULL.  The NULL test in the return value check should
be replaced with IS_ERR().
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: NJingoo Han <jg1.han@samsung.com>
上级 6ce4eac1
...@@ -276,8 +276,8 @@ static int __init rcar_pci_probe(struct platform_device *pdev) ...@@ -276,8 +276,8 @@ static int __init rcar_pci_probe(struct platform_device *pdev)
cfg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); cfg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
reg = devm_ioremap_resource(&pdev->dev, cfg_res); reg = devm_ioremap_resource(&pdev->dev, cfg_res);
if (!reg) if (IS_ERR(reg))
return -ENODEV; return PTR_ERR(reg);
mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 1); mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
if (!mem_res || !mem_res->start) if (!mem_res || !mem_res->start)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册