summaryrefslogtreecommitdiffstats
path: root/sound/drivers/mpu401
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-08-12 20:20:11 +0200
committerTakashi Iwai <tiwai@suse.de>2017-08-12 23:35:06 +0200
commit30b2aeb8a85c2f91f23c95e2b6723a464d0ee6d3 (patch)
tree042921c1b12e0809081adbcacb4b554d27b087b6 /sound/drivers/mpu401
parentALSA: opl3: Delete an error message for a failed memory allocation in snd_opl... (diff)
downloadlinux-30b2aeb8a85c2f91f23c95e2b6723a464d0ee6d3.tar.xz
linux-30b2aeb8a85c2f91f23c95e2b6723a464d0ee6d3.zip
ALSA: mpu401: Delete an error message for a failed memory allocation in snd_mpu401_uart_new()
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/drivers/mpu401')
-rw-r--r--sound/drivers/mpu401/mpu401_uart.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/drivers/mpu401/mpu401_uart.c b/sound/drivers/mpu401/mpu401_uart.c
index 3a7c317ae012..cc347386fc2b 100644
--- a/sound/drivers/mpu401/mpu401_uart.c
+++ b/sound/drivers/mpu401/mpu401_uart.c
@@ -545,7 +545,6 @@ int snd_mpu401_uart_new(struct snd_card *card, int device,
return err;
mpu = kzalloc(sizeof(*mpu), GFP_KERNEL);
if (mpu == NULL) {
- snd_printk(KERN_ERR "mpu401_uart: cannot allocate\n");
snd_device_free(card, rmidi);
return -ENOMEM;
}