diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-07-09 08:41:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-11 15:38:26 -0400 |
commit | 5d7d55d681d522d1ebaca68fd7e9166b3204245a (patch) | |
tree | a1a297e27fce66830ceb998a00e187e73d7b60cf /drivers/net/wireless/rt2x00 | |
parent | c9122c0d63a50bab0a97dc936a38c0f921b6930e (diff) |
rt2x00pci: small 3290 changes cleanup
Fix indention and remove unnecessary brackets and compares.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index dd436125fe3d..235376e9cb04 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -986,7 +986,7 @@ static int rt2800_enable_wlan_rt3290(struct rt2x00_dev *rt2x00dev) | |||
986 | int i, count; | 986 | int i, count; |
987 | 987 | ||
988 | rt2800_register_read(rt2x00dev, WLAN_FUN_CTRL, ®); | 988 | rt2800_register_read(rt2x00dev, WLAN_FUN_CTRL, ®); |
989 | if ((rt2x00_get_field32(reg, WLAN_EN) == 1)) | 989 | if (rt2x00_get_field32(reg, WLAN_EN)) |
990 | return 0; | 990 | return 0; |
991 | 991 | ||
992 | rt2x00_set_field32(®, WLAN_GPIO_OUT_OE_BIT_ALL, 0xff); | 992 | rt2x00_set_field32(®, WLAN_GPIO_OUT_OE_BIT_ALL, 0xff); |
@@ -1004,9 +1004,9 @@ static int rt2800_enable_wlan_rt3290(struct rt2x00_dev *rt2x00dev) | |||
1004 | */ | 1004 | */ |
1005 | for (i = 0; i < REGISTER_BUSY_COUNT; i++) { | 1005 | for (i = 0; i < REGISTER_BUSY_COUNT; i++) { |
1006 | rt2800_register_read(rt2x00dev, CMB_CTRL, ®); | 1006 | rt2800_register_read(rt2x00dev, CMB_CTRL, ®); |
1007 | if ((rt2x00_get_field32(reg, PLL_LD) == 1) && | 1007 | if (rt2x00_get_field32(reg, PLL_LD) && |
1008 | (rt2x00_get_field32(reg, XTAL_RDY) == 1)) | 1008 | rt2x00_get_field32(reg, XTAL_RDY)) |
1009 | break; | 1009 | break; |
1010 | udelay(REGISTER_BUSY_DELAY); | 1010 | udelay(REGISTER_BUSY_DELAY); |
1011 | } | 1011 | } |
1012 | 1012 | ||