IB/nes: Remove debug prints after allocation failure
The prints after [k|v][m|z|c]alloc() functions are not needed, because in case of failure, allocator will print their internal error prints anyway. Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:

committed by
Doug Ledford

parent
c40a83b978
commit
2e65835a1b
@@ -516,7 +516,6 @@ static int nes_probe(struct pci_dev *pcidev, const struct pci_device_id *ent)
|
||||
/* Allocate hardware structure */
|
||||
nesdev = kzalloc(sizeof(struct nes_device), GFP_KERNEL);
|
||||
if (!nesdev) {
|
||||
printk(KERN_ERR PFX "%s: Unable to alloc hardware struct\n", pci_name(pcidev));
|
||||
ret = -ENOMEM;
|
||||
goto bail2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user