linux/arch/avr32
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
..
boards avr32: fix error return code 2014-08-07 15:28:35 +02:00
boot avr32: fix out-of-range jump in large kernels 2013-11-20 09:53:21 +01:00
configs USB: delete CONFIG_USB_DEVICEFS from defconfig 2014-05-27 16:07:13 -07:00
include arch,avr32: Convert smp_mb__*() 2014-04-18 11:40:33 +02:00
kernel avr32: replace simple_strtoul() with kstrtoul() 2014-04-01 09:09:25 +02:00
lib ARCH: drivers remove __dev* attributes. 2013-01-03 15:57:13 -08:00
mach-at32ap avr32: pm: Fix section mismatch 2013-12-10 08:46:38 +01:00
mm arch/avr32/mm/cache.c: export symbol flush_icache_range() for module using 2014-03-31 08:41:52 +02:00
oprofile oprofilefs_create_...() do not need superblock argument 2013-09-03 22:52:48 -04:00
Kconfig Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
Kconfig.debug [AVR32] Include instrumentation menu 2008-01-25 08:31:40 +01:00
Makefile avr32: Makefile: add '-D__linux__' flag for gcc-4.4.7 use 2014-02-17 11:24:43 +01:00