summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-12 16:10:32 +0200
committerTakashi Iwai <tiwai@suse.de>2017-08-12 23:28:32 +0200
commit9dba54296b8b4ae14053bfea82b171aeb9e16710 (patch)
tree23238f76bff443c01a9389089c64aeb34099b90f /sound/pci
parent2cb98d010fdc7a545856baf32bce096fa431d250 (diff)
downloadlinux-stable-9dba54296b8b4ae14053bfea82b171aeb9e16710.tar.gz
linux-stable-9dba54296b8b4ae14053bfea82b171aeb9e16710.tar.bz2
linux-stable-9dba54296b8b4ae14053bfea82b171aeb9e16710.zip
ALSA: rme9652: Delete an error message for a failed memory allocation in snd_hdspm_create()
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>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/rme9652/hdspm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sound/pci/rme9652/hdspm.c b/sound/pci/rme9652/hdspm.c
index 2a3a916e5d15..d448cf474c1b 100644
--- a/sound/pci/rme9652/hdspm.c
+++ b/sound/pci/rme9652/hdspm.c
@@ -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;