diff options
author | Peter Senna Tschudin <peter.senna@gmail.com> | 2012-09-18 14:07:55 +0200 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2012-09-22 21:41:52 +0000 |
commit | 130320bfe0ca88b0f80dde758a551b5beffb9f62 (patch) | |
tree | 3953894b61ba37105e6e6f0250846bbbb0466fcd /fs/qnx6 | |
parent | b157dd1c38de2acad1b490851bab2244f4ef517a (diff) | |
download | linux-3.10-130320bfe0ca88b0f80dde758a551b5beffb9f62.tar.gz linux-3.10-130320bfe0ca88b0f80dde758a551b5beffb9f62.tar.bz2 linux-3.10-130320bfe0ca88b0f80dde758a551b5beffb9f62.zip |
drivers/video/atmel_lcdfb.c: fix error return code
Convert a nonnegative error return code to a negative one, as returned
elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
{ ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
when != &ret
*if(...)
{
... when != ret = e2
when forall
return ret;
}
// </smpl>
Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions