linux/arch/avr32/boards/hammerhead
Julia Lawall 686913aa9f avr32: fix error return code
Convert a zero return value on error 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>
@@
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>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
2014-08-07 15:28:35 +02:00
..
Kconfig tree-wide: fix assorted typos all over the place 2009-12-04 15:39:55 +01:00
Makefile avr32: Hammerhead board support 2009-01-05 15:52:04 +01:00
flash.c avr32: fix error return code 2014-08-07 15:28:35 +02:00
flash.h avr32: Hammerhead board support 2009-01-05 15:52:04 +01:00
setup.c video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00