diff options
| author | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2009-01-14 22:32:43 +0000 |
|---|---|---|
| committer | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2009-01-14 22:32:43 +0000 |
| commit | 00582be0e98c246c300c57564434bb7ac6cdaf45 (patch) | |
| tree | 5fa7b734f99ce7e2dc6fde39890b895b395034d0 | |
| parent | 31fade0527a3ef34323e884f89df0be57eed927e (diff) | |
Notes
| -rw-r--r-- | sys/mips/malta/gt_pci.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/mips/malta/gt_pci.c b/sys/mips/malta/gt_pci.c index 2bb8958b37e6..e8f7ffd96a91 100644 --- a/sys/mips/malta/gt_pci.c +++ b/sys/mips/malta/gt_pci.c @@ -457,21 +457,7 @@ gt_pci_write_config(device_t dev, int bus, int slot, int func, int reg, * Should we set the mode explicitly during chip * Initialization? */ - switch(reg % 4) - { - case 3: - shift = 24; - break; - case 2: - shift = 16; - break; - case 1: - shift = 8; - break; - default: - shift = 0; - break; - } + shift = 8 * (reg & 3); switch(bytes) { |
