diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2007-10-06 08:16:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:15 -0400 |
commit | 4f5af6eb3d17f8e343597ea99d97eb2f2905b2fb (patch) | |
tree | 7c35cacd6167c90a8846da2c04f64e56c8fd1f9f /drivers/net/wireless/rt2x00/rt61pci.c | |
parent | 5cbf830e137d1b6057cb6b553a8ebbb7d1b9343f (diff) |
[PATCH] rt2x00: Small optimizations
Make some small optimizations by removing
some simple if-statements.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt61pci.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt61pci.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 8011523962a6..cd22817cced5 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -357,10 +357,8 @@ static void rt61pci_config_rate(struct rt2x00_dev *rt2x00dev, const int rate) | |||
357 | rt2x00pci_register_write(rt2x00dev, TXRX_CSR0, reg); | 357 | rt2x00pci_register_write(rt2x00dev, TXRX_CSR0, reg); |
358 | 358 | ||
359 | rt2x00pci_register_read(rt2x00dev, TXRX_CSR4, ®); | 359 | rt2x00pci_register_read(rt2x00dev, TXRX_CSR4, ®); |
360 | if (preamble == SHORT_PREAMBLE) | 360 | rt2x00_set_field32(®, TXRX_CSR4_AUTORESPOND_PREAMBLE, |
361 | rt2x00_set_field32(®, TXRX_CSR4_AUTORESPOND_PREAMBLE, 1); | 361 | (preamble == SHORT_PREAMBLE)); |
362 | else | ||
363 | rt2x00_set_field32(®, TXRX_CSR4_AUTORESPOND_PREAMBLE, 0); | ||
364 | rt2x00pci_register_write(rt2x00dev, TXRX_CSR4, reg); | 362 | rt2x00pci_register_write(rt2x00dev, TXRX_CSR4, reg); |
365 | } | 363 | } |
366 | 364 | ||