rt2x00: Remove suspicious register write
authorHelmut Schaa <helmut.schaa@googlemail.com>
Thu, 3 Jun 2010 08:52:17 +0000 (10:52 +0200)
committerIvo van Doorn <IvDoorn@gmail.com>
Thu, 3 Jun 2010 08:52:17 +0000 (10:52 +0200)
Remove suspicious register write as the reg variable is never filled
with an TX_SW_CFG2 associated value before.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index 11fd3937e9358db91787c523ec03616a3bcbce87..ae20e6728b1ee3e18d49e9d43e4d572333507600 100644 (file)
@@ -1335,7 +1335,6 @@ int rt2800_init_registers(struct rt2x00_dev *rt2x00dev)
                } else {
                        rt2800_register_write(rt2x00dev, TX_SW_CFG2, 0x00000000);
                }
-               rt2800_register_write(rt2x00dev, TX_SW_CFG2, reg);
        } else if (rt2x00_rt(rt2x00dev, RT3070)) {
                rt2800_register_write(rt2x00dev, TX_SW_CFG0, 0x00000400);