Skip to content

Commit

Permalink
ALSA: mpu401: Delete an error message for a failed memory allocation …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
elfring authored and tiwai committed Aug 12, 2017
1 parent 2b223a9 commit 30b2aeb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/drivers/mpu401/mpu401_uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 30b2aeb

Please sign in to comment.