ALSA: aoa: remove unnecessary oom message
authorZhen Lei <thunder.leizhen@huawei.com>
Thu, 17 Jun 2021 10:27:45 +0000 (18:27 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 17 Jun 2021 15:31:38 +0000 (17:31 +0200)
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>
sound/aoa/soundbus/i2sbus/pcm.c

index 1c8e8131a7162c1cb7d8ac159c9e6c79164fa75c..a9e502a6cdeb89f7fb695528a80937a1b63eb1ed 100644 (file)
@@ -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);