mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
ALSA: rme96: Check the return value of pci_enable_device() in resume callback
Fixing warning message: sound/pci/rme96.c: In function ‘snd_rme96_resume’: sound/pci/rme96.c:2418:19: warning: ignoring return value of ‘pci_enable_device’, declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
cd217a6395
commit
e58a244ff9
1 changed files with 5 additions and 1 deletions
|
@ -2415,7 +2415,11 @@ snd_rme96_resume(struct pci_dev *pci)
|
||||||
struct rme96 *rme96 = card->private_data;
|
struct rme96 *rme96 = card->private_data;
|
||||||
|
|
||||||
pci_restore_state(pci);
|
pci_restore_state(pci);
|
||||||
pci_enable_device(pci);
|
if (pci_enable_device(pci) < 0) {
|
||||||
|
printk(KERN_ERR "rme96: pci_enable_device failed, disabling device\n");
|
||||||
|
snd_card_disconnect(card);
|
||||||
|
return -EIO;
|
||||||
|
}
|
||||||
|
|
||||||
/* reset playback and record buffer pointers */
|
/* reset playback and record buffer pointers */
|
||||||
writel(0, rme96->iobase + RME96_IO_SET_PLAY_POS
|
writel(0, rme96->iobase + RME96_IO_SET_PLAY_POS
|
||||||
|
|
Loading…
Reference in a new issue