From: Zhen Lei Date: Wed, 9 Jun 2021 12:24:50 +0000 (+0800) Subject: sx8: remove unnecessary oom message X-Git-Tag: v5.15~851^2~6 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c744b06254a3a163c6bcf70bb21f0241107271fc;p=mirror_ubuntu-kernels.git sx8: 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 Signed-off-by: Jens Axboe --- diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 2cdf2771f8e8..71dcfde042ab 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c @@ -1429,8 +1429,6 @@ static int carm_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) host = kzalloc(sizeof(*host), GFP_KERNEL); if (!host) { - printk(KERN_ERR DRV_NAME "(%s): memory alloc failure\n", - pci_name(pdev)); rc = -ENOMEM; goto err_out_regions; }