commit | 6128f1bec447cdaa42b61093e351697dbe1c72ed | [log] [tgz] |
---|---|---|
author | Julia Lawall <Julia.Lawall@lip6.fr> | Sun Apr 05 14:06:31 2015 +0200 |
committer | Rob Clark <robdclark@gmail.com> | Thu May 14 11:28:41 2015 -0400 |
tree | f5d64053b0f53873381542c783461a79ebeb6e63 | |
parent | a2ca77898e9b81f6d6b3bfa1ff46713e697e8af7 [diff] |
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>