diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-04-05 04:55:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-04-05 05:51:04 -0400 |
commit | 42258daba22897f9859b0f3cb42700322b7c16bc (patch) | |
tree | 9dcf72eaa1d9c6d8f9a8df907f0f10068162017a /sound/pci/asihpi/hpioctl.c | |
parent | 6d0b898e9c402d6b7d0d07adacdbee2ebedafdcd (diff) |
ALSA: asihpi: Minor cleanups
Remove some unneeded defintions
Use %pR to print resources
Make some data const
Consistent braces for else
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpioctl.c')
-rw-r--r-- | sound/pci/asihpi/hpioctl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index 484f41189867..d8e7047512f8 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c | |||
@@ -317,7 +317,7 @@ out: | |||
317 | int __devinit asihpi_adapter_probe(struct pci_dev *pci_dev, | 317 | int __devinit asihpi_adapter_probe(struct pci_dev *pci_dev, |
318 | const struct pci_device_id *pci_id) | 318 | const struct pci_device_id *pci_id) |
319 | { | 319 | { |
320 | int err, idx, nm; | 320 | int idx, nm; |
321 | unsigned int memlen; | 321 | unsigned int memlen; |
322 | struct hpi_message hm; | 322 | struct hpi_message hm; |
323 | struct hpi_response hr; | 323 | struct hpi_response hr; |
@@ -351,11 +351,8 @@ int __devinit asihpi_adapter_probe(struct pci_dev *pci_dev, | |||
351 | nm = HPI_MAX_ADAPTER_MEM_SPACES; | 351 | nm = HPI_MAX_ADAPTER_MEM_SPACES; |
352 | 352 | ||
353 | for (idx = 0; idx < nm; idx++) { | 353 | for (idx = 0; idx < nm; idx++) { |
354 | HPI_DEBUG_LOG(INFO, "resource %d %s %08llx-%08llx %04llx\n", | 354 | HPI_DEBUG_LOG(INFO, "resource %d %pR\n", idx, |
355 | idx, pci_dev->resource[idx].name, | 355 | &pci_dev->resource[idx]); |
356 | (unsigned long long)pci_resource_start(pci_dev, idx), | ||
357 | (unsigned long long)pci_resource_end(pci_dev, idx), | ||
358 | (unsigned long long)pci_resource_flags(pci_dev, idx)); | ||
359 | 356 | ||
360 | if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { | 357 | if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { |
361 | memlen = pci_resource_len(pci_dev, idx); | 358 | memlen = pci_resource_len(pci_dev, idx); |