diff options
| author | Peter Senna Tschudin <[email protected]> | 2014-05-19 10:26:52 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-05-21 19:56:26 +0000 |
| commit | 7e910357f620bbebe5c5cb038b70d408e624522f (patch) | |
| tree | 06b29b84139ee10d2c4ed1a43e46b501fc439036 /net/ipv4/tcp_output.c | |
| parent | ipv6: slight optimization in ip6_dst_gc (diff) | |
| download | kernel-7e910357f620bbebe5c5cb038b70d408e624522f.tar.gz kernel-7e910357f620bbebe5c5cb038b70d408e624522f.zip | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
