Skip to content

Commit

Permalink
[media] s5p-mfc: fix error return code in s5p_mfc_probe()
Browse files Browse the repository at this point in the history
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Wei Yongjun authored and Mauro Carvalho Chehab committed Apr 25, 2013
1 parent b34f51f commit d68b44e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/platform/s5p-mfc/s5p_mfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,8 @@ static int s5p_mfc_probe(struct platform_device *pdev)
}

if (pdev->dev.of_node) {
if (s5p_mfc_alloc_memdevs(dev) < 0)
ret = s5p_mfc_alloc_memdevs(dev);
if (ret < 0)
goto err_res;
} else {
dev->mem_dev_l = device_find_child(&dev->plat_dev->dev,
Expand Down

0 comments on commit d68b44e

Please sign in to comment.