Tag: a45a1e07aa5e4d3dc952c264f87184c5ac8c0a62

USB: serial: Eliminate useless code

Author: Julia Lawall <julia@diku.dk> The variables priv and portdata are initialized twice to the same (side effect-free) expressions. Drop one initialization in each case. A simplified version of the semantic match that finds this problem is: (http://coccinelle.lip6.fr/) // @forall@ idexpression *x; identifier f!=ERR_PTR; @@ x = f(…) … when != x ( x = f(…,,…) …

Continue reading