Skip to content

Commit

Permalink
staging: android/ion: testing the wrong variable
Browse files Browse the repository at this point in the history
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: 1343947 ('staging: ion: Add files for parsing the devicetree')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 17, 2016
1 parent 4fa5891 commit 0047b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/android/ion/ion_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
&pdev->dev);
if (!pdev)
if (!heap_pdev)
return ERR_PTR(-ENOMEM);
heap_pdev->dev.platform_data = &heaps[i];

Expand Down

0 comments on commit 0047b6e

Please sign in to comment.