aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qla3xxx.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2010-01-18 03:29:19 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-18 03:29:19 -0500
commit2ae3111eafd797e24cc390bb5ce6a8fa0deacdb2 (patch)
tree14eeb14eb9a4d4e80a8714b88470ca9eaf8dde78 /drivers/net/qla3xxx.c
parent354fcd7774a00809ebefdba75e747364cb22a940 (diff)
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>
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r--drivers/net/qla3xxx.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index f922294fd349..4ef0afbcbe1b 100644
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -4087,7 +4087,6 @@ static void __devexit ql3xxx_remove(struct pci_dev *pdev)
4087 struct ql3_adapter *qdev = netdev_priv(ndev); 4087 struct ql3_adapter *qdev = netdev_priv(ndev);
4088 4088
4089 unregister_netdev(ndev); 4089 unregister_netdev(ndev);
4090 qdev = netdev_priv(ndev);
4091 4090
4092 ql_disable_interrupts(qdev); 4091 ql_disable_interrupts(qdev);
4093 4092