linux-stable/drivers/net/can/sja1000
Peter Senna Tschudin 4a4bfdcd29 can: peak_pci: 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: Marc Kleine-Budde <mkl@pengutronix.de>
2012-10-04 19:24:39 +02:00
..
ems_pci.c net/can: use module_pci_driver 2012-04-16 21:08:18 +02:00
ems_pcmcia.c can/sja1000: add driver for EMS PCMCIA card 2011-09-28 13:41:50 -04:00
Kconfig Fix "the the" in various Kconfig 2012-04-18 14:12:27 +02:00
kvaser_pci.c net/can: use module_pci_driver 2012-04-16 21:08:18 +02:00
Makefile can: sja1000: add support for PEAK-System PCMCIA card 2012-03-03 17:40:46 +01:00
peak_pci.c can: peak_pci: fix error return code 2012-10-04 19:24:39 +02:00
peak_pcmcia.c can: sja1000: add support for PEAK-System PCMCIA card 2012-03-03 17:40:46 +01:00
plx_pci.c net/can: use module_pci_driver 2012-04-16 21:08:18 +02:00
sja1000.c can: sja1000: Add support for listen-only mode and one-shot mode 2012-09-22 15:26:53 -04:00
sja1000.h can: remove references to berlios mailinglist 2011-10-17 19:22:46 -04:00
sja1000_isa.c can: sja1000_isa: convert to platform driver to support x86_64 systems 2011-11-29 18:35:51 -05:00
sja1000_of_platform.c net/can: convert drivers/net/can/* to use module_platform_driver() 2011-11-29 00:25:05 -05:00
sja1000_platform.c can: sja1000_platform: fix wrong flag IRQF_SHARED for interrupt sharing 2012-08-24 10:54:05 +02:00
tscan1.c can: tscan1: add driver for TS-CAN1 boards 2010-10-24 15:26:48 -07:00