Commit 0047b6e5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: android/ion: testing the wrong variable

We're testing "pdev" but we intended to test "heap_pdev".  This is a
static checker fix and it's unlikely that anyone is affected by this
bug.

Fixes: 13439479 ('staging: ion: Add files for parsing the devicetree')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarLaura Abbott <labbott@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4fa58912
...@@ -107,7 +107,7 @@ struct ion_platform_data *ion_parse_dt(struct platform_device *pdev, ...@@ -107,7 +107,7 @@ struct ion_platform_data *ion_parse_dt(struct platform_device *pdev,
heap_pdev = of_platform_device_create(node, heaps[i].name, heap_pdev = of_platform_device_create(node, heaps[i].name,
&pdev->dev); &pdev->dev);
if (!pdev) if (!heap_pdev)
return ERR_PTR(-ENOMEM); return ERR_PTR(-ENOMEM);
heap_pdev->dev.platform_data = &heaps[i]; heap_pdev->dev.platform_data = &heaps[i];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment