Commit 37d122c5 authored by Zhen Lei's avatar Zhen Lei Committed by Takashi Iwai
Browse files

ALSA: aoa: remove unnecessary oom message



Fixes scripts/checkpatch.pl warning:
WARNING: Possible unnecessary 'out of memory' message

Remove it can help us save a bit of memory.

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210617102746.1709-1-thunder.leizhen@huawei.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c485f7e9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -918,10 +918,8 @@ i2sbus_attach_codec(struct soundbus_dev *dev, struct snd_card *card,
	}

	cii = kzalloc(sizeof(struct codec_info_item), GFP_KERNEL);
	if (!cii) {
		printk(KERN_DEBUG "i2sbus: failed to allocate cii\n");
	if (!cii)
		return -ENOMEM;
	}

	/* use the private data to point to the codec info */
	cii->sdev = soundbus_dev_get(dev);