ALSA: rme96: Delete two error messages for a failed memory allocation in snd_rme96_pr...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 12 Aug 2017 12:24:41 +0000 (14:24 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Aug 2017 21:26:49 +0000 (23:26 +0200)
Omit extra messages for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/rme96.c

index 2e19ba55e754f34d3eaa0516e6d45d591713740e..82e8c78e48caf228c682e07fea539e6c8e4c9739 100644 (file)
@@ -2489,15 +2489,11 @@ snd_rme96_probe(struct pci_dev *pci,
 #ifdef CONFIG_PM_SLEEP
        rme96->playback_suspend_buffer = vmalloc(RME96_BUFFER_SIZE);
        if (!rme96->playback_suspend_buffer) {
-               dev_err(card->dev,
-                          "Failed to allocate playback suspend buffer!\n");
                snd_card_free(card);
                return -ENOMEM;
        }
        rme96->capture_suspend_buffer = vmalloc(RME96_BUFFER_SIZE);
        if (!rme96->capture_suspend_buffer) {
-               dev_err(card->dev,
-                          "Failed to allocate capture suspend buffer!\n");
                snd_card_free(card);
                return -ENOMEM;
        }