rt2x00: rt2800lib: no need to write RF register 3 twice for RT5592
authorKevin Lo <kevlo@kevlo.org>
Thu, 14 Nov 2013 05:53:44 +0000 (13:53 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:55:00 +0000 (14:55 -0500)
In rt2800_init_rfcsr_5592(), there's no need to write RF register 3 twice.

Signed-off-by: Kevin Lo <kevlo@kevlo.org>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800lib.c

index 7848b39078c398cf7a1ab42866a9d1f7b4896f5b..5ee5b296ad28fceb720cbd7a3016b57beaa7ed2f 100644 (file)
@@ -6610,7 +6610,6 @@ static void rt2800_init_rfcsr_5592(struct rt2x00_dev *rt2x00dev)
 
        rt2800_rfcsr_write(rt2x00dev, 1, 0x3F);
        rt2800_rfcsr_write(rt2x00dev, 3, 0x08);
-       rt2800_rfcsr_write(rt2x00dev, 3, 0x08);
        rt2800_rfcsr_write(rt2x00dev, 5, 0x10);
        rt2800_rfcsr_write(rt2x00dev, 6, 0xE4);
        rt2800_rfcsr_write(rt2x00dev, 7, 0x00);