Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f197acd2 authored by Markus Elfring's avatar Markus Elfring Committed by Takashi Iwai
Browse files

ALSA: ca0106: Delete an error message for a failed memory allocation in...


ALSA: ca0106: Delete an error message for a failed memory allocation in snd_ca0106_pcm_open_capture_channel()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a357f3d1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -660,11 +660,9 @@ static int snd_ca0106_pcm_open_capture_channel(struct snd_pcm_substream *substre
	int err;

	epcm = kzalloc(sizeof(*epcm), GFP_KERNEL);
	if (epcm == NULL) {
		dev_err(chip->card->dev,
			"open_capture_channel: failed epcm alloc\n");
	if (!epcm)
		return -ENOMEM;
        }

	epcm->emu = chip;
	epcm->substream = substream;
        epcm->channel_id=channel_id;