]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/msm/dp: fix error return code
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 5 Apr 2015 12:06:31 +0000 (14:06 +0200)
committerRob Clark <robdclark@gmail.com>
Thu, 14 May 2015 15:28:41 +0000 (11:28 -0400)
commit6128f1bec447cdaa42b61093e351697dbe1c72ed
treef5d64053b0f53873381542c783461a79ebeb6e63
parenta2ca77898e9b81f6d6b3bfa1ff46713e697e8af7
drm/msm/dp: fix error return code

Return a negative 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>
drivers/gpu/drm/msm/edp/edp_ctrl.c