kernel-hacking-2024-linux-s.../drivers/atm
Peter Senna Tschudin 7e910357f6 atm: idt77252: Remove redundant error check
Remove double checks, convert printk to pr_warn, and move the call to
pr_warn to the first check. The simplified version of the coccinelle
semantic patch that find this issue is as follows:

// <smpl>
@@
expression E; identifier pr; expression list es;
@@
while(...){
...
-       if (E) break;
+       if (E){
+               pr(es);
+               break;
+       }
...
}
- if(E) pr(es);
// </smpl>

Tested by compilation only.

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-21 15:56:26 -04:00
..
.gitignore
adummy.c
ambassador.c atm: ambassador: use NULL instead of 0 for pointer 2014-02-19 16:39:10 -05:00
ambassador.h
atmtcp.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
eni.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00
eni.h
firestream.c atm: firestream: Use del_timer_sync() in teardown path 2014-03-25 21:06:02 -04:00
firestream.h atm: firestream: remove duplicate define 2013-10-21 18:46:46 -04:00
fore200e.c
fore200e.h
he.c atm: he: remove unnecessary pci_set_drvdata() 2013-12-10 22:31:32 -05:00
he.h
horizon.c
horizon.h
idt77105.c atm: idt77105: Use del_timer_sync() in exit path 2014-03-25 21:06:02 -04:00
idt77105.h
idt77252.c atm: idt77252: Remove redundant error check 2014-05-21 15:56:26 -04:00
idt77252.h
idt77252_tables.h
iphase.c
iphase.h
Kconfig
lanai.c
Makefile
midway.h
nicstar.c atm: nicstar: remove interruptible_sleep_on_timeout 2014-02-27 15:22:46 -05:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c atm: solos-pci: make solos_bh() as static 2014-02-19 16:39:11 -05:00
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c
zatm.h
zeprom.h