mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210617102746.1709-1-thunder.leizhen@huawei.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c485f7e986
commit
37d122c576
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user