Commit 09cb47a
net/sctp: Eliminate useless code
The variable newinet is initialized twice to the same (side effect-free)
expression. Drop one initialization.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/)
// <smpl>
@forall@
idexpression *x;
identifier f!=ERR_PTR;
@@
x = f(...)
... when != x
(
x = f(...,<+...x...+>,...)
|
* x = f(...)
)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 17660f8 commit 09cb47a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6359 | 6359 | | |
6360 | 6360 | | |
6361 | 6361 | | |
6362 | | - | |
| 6362 | + | |
6363 | 6363 | | |
6364 | 6364 | | |
6365 | 6365 | | |
| |||
0 commit comments