Messages in this thread Patch in this message | | | Subject | [PATCH 2/4] misc/ioc4: Delete an error message for a failed memory allocation in ioc4_probe() | From | SF Markus Elfring <> | Date | Mon, 8 Jan 2018 17:16:48 +0100 |
| |
From: Markus Elfring <elfring@users.sourceforge.net> Date: Mon, 8 Jan 2018 16:14:49 +0100
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> --- drivers/misc/ioc4.c | 3 --- 1 file changed, 3 deletions(-)
diff --git a/drivers/misc/ioc4.c b/drivers/misc/ioc4.c index 63a64104d2da..5bd422498fff 100644 --- a/drivers/misc/ioc4.c +++ b/drivers/misc/ioc4.c @@ -297,9 +297,6 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id) /* Set up per-IOC4 data */ idd = kmalloc(sizeof(struct ioc4_driver_data), GFP_KERNEL); if (!idd) { - printk(KERN_WARNING - "%s: Failed to allocate IOC4 data for pci_dev %s.\n", - __func__, pci_name(pdev)); ret = -ENOMEM; goto out_idd; } -- 2.15.1
| |