]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drivers/net: Eliminate useless code
authorJulia Lawall <julia@diku.dk>
Mon, 18 Jan 2010 08:29:19 +0000 (00:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jan 2010 08:29:19 +0000 (00:29 -0800)
commit2ae3111eafd797e24cc390bb5ce6a8fa0deacdb2
tree14eeb14eb9a4d4e80a8714b88470ca9eaf8dde78
parent354fcd7774a00809ebefdba75e747364cb22a940
drivers/net: Eliminate useless code

The variable qdev 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qla3xxx.c