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

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

ALSA: pcxhr: Delete an error message for a failed memory allocation in pcxhr_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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent dee49895
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1215,10 +1215,8 @@ static int pcxhr_create(struct pcxhr_mgr *mgr,
	};

	chip = kzalloc(sizeof(*chip), GFP_KERNEL);
	if (! chip) {
		dev_err(card->dev, "cannot allocate chip\n");
	if (!chip)
		return -ENOMEM;
	}

	chip->card = card;
	chip->chip_idx = idx;