linux/arch/avr32/boards
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
..
atngw100 video: atmel_lcdfb: pass the pdata as params 2013-09-27 09:26:20 +03:00
atstk1000 video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
favr-32 avr32: favr-32: clk_round_rate() can return a zero upon error 2013-12-10 08:46:38 +01:00
hammerhead avr32: fix error return code 2014-08-07 15:28:35 +02:00
merisc video: atmel_lcdfb: fix platform data struct 2013-09-27 09:26:19 +03:00
mimc200 misc: delete mimc200 fram driver 2014-02-28 15:08:46 -08:00