ALSA: rme9652: Delete an error message for a failed memory allocation in snd_hdspm_cr...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 12 Aug 2017 14:10:32 +0000 (16:10 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Aug 2017 21:28:32 +0000 (23:28 +0200)
Omit an extra message 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/rme9652/hdspm.c

index 2a3a916e5d15d9f6889f4c1ca4e0fee43612d881..d448cf474c1b4abb7eb148eeac52e076473f4169 100644 (file)
@@ -6638,12 +6638,8 @@ static int snd_hdspm_create(struct snd_card *card,
        dev_dbg(card->dev, "kmalloc Mixer memory of %zd Bytes\n",
                        sizeof(struct hdspm_mixer));
        hdspm->mixer = kzalloc(sizeof(struct hdspm_mixer), GFP_KERNEL);
-       if (!hdspm->mixer) {
-               dev_err(card->dev,
-                       "unable to kmalloc Mixer memory of %d Bytes\n",
-                               (int)sizeof(struct hdspm_mixer));
+       if (!hdspm->mixer)
                return -ENOMEM;
-       }
 
        hdspm->port_names_in = NULL;
        hdspm->port_names_out = NULL;