IB/mthca: 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:
Родитель
2e65835a1b
Коммит
870b285245
|
@ -96,8 +96,6 @@ int mthca_reset(struct mthca_dev *mdev)
|
|||
hca_header = kmalloc(256, GFP_KERNEL);
|
||||
if (!hca_header) {
|
||||
err = -ENOMEM;
|
||||
mthca_err(mdev, "Couldn't allocate memory to save HCA "
|
||||
"PCI header, aborting.\n");
|
||||
goto put_dev;
|
||||
}
|
||||
|
||||
|
@ -119,8 +117,6 @@ int mthca_reset(struct mthca_dev *mdev)
|
|||
bridge_header = kmalloc(256, GFP_KERNEL);
|
||||
if (!bridge_header) {
|
||||
err = -ENOMEM;
|
||||
mthca_err(mdev, "Couldn't allocate memory to save HCA "
|
||||
"bridge PCI header, aborting.\n");
|
||||
goto free_hca;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче