1
linux/drivers/atm
Julia Lawall 1790c228fb drivers/atm/idt77252.c: Remove unnecessary error check
This code does not call deinit_card(card); in an error case, as done in
other error-handling code in the same function.  But actually, the called
function init_sram can only return 0, so there is no need for the error
check at all.

init_sram is also given a void return type, and its single return statement
at the end of the function is dropped.

A simplified version of the sematic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@r exists@
@r@
statement S1,S2,S3;
constant C1,C2,C3;
@@

*if (...)
 {... S1 return -C1;}
...
*if (...)
 {... when != S1
    return -C2;}
...
*if (...)
 {... S1 return -C3;}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-03 22:06:11 -07:00
..
.gitignore
adummy.c
ambassador.c atm: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) 2010-07-15 19:05:18 -07:00
ambassador.h
atmtcp.c
eni.c atm: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) 2010-07-15 19:05:18 -07:00
eni.h
firestream.c drivers/atm/firestream.c: Fix unsigned return type 2010-09-06 18:48:42 -07:00
firestream.h
fore200e.c of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
fore200e.h
he.c atm: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) 2010-07-15 19:05:19 -07:00
he.h
horizon.c drivers: atm: use native kernel's hex_to_bin() func 2010-09-21 18:04:44 -07:00
horizon.h
idt77105.c
idt77105.h
idt77252_tables.h
idt77252.c drivers/atm/idt77252.c: Remove unnecessary error check 2010-10-03 22:06:11 -07:00
idt77252.h
iphase.c drivers/atm: Adjust confusing if indentation 2010-08-16 21:06:27 -07:00
iphase.h
Kconfig
lanai.c
Makefile
midway.h
nicstar.c drivers: atm: don't use private copy of hex_to_bin() 2010-07-23 12:50:49 -07:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c solos-pci: Fix race condition in tasklet RX handling 2010-08-07 23:02:59 -07:00
suni.c atm/suni.c: call atm_dev_signal_change() when signal changes. 2010-07-09 00:09:23 -07:00
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c atm: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) 2010-07-15 19:05:21 -07:00
zatm.h
zeprom.h