drm/exynos/ipp: fix error return code
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 23 Nov 2014 13:11:15 +0000 (14:11 +0100)
committerInki Dae <inki.dae@samsung.com>
Mon, 24 Nov 2014 14:52:04 +0000 (23:52 +0900)
commitbe19d9336995241f5c98d0abebff440fef03455e
treeb8897bfb1e90077b7d81566a2c7641f6a99c810a
parent4846e452084945891a770809f94b23f33eebcd8c
drm/exynos/ipp: fix error return code

Propagate the returned error code on failure.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier ret; expression e1,e2;
@@
(
if (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_ipp.c