Browse Source

IB/hfi1: 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>
Leon Romanovsky 8 years ago
parent
commit
5ce9f115bd
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/infiniband/hw/hfi1/pio.c

+ 0 - 1
drivers/infiniband/hw/hfi1/pio.c

@@ -2053,7 +2053,6 @@ int init_credit_return(struct hfi1_devdata *dd)
 		sizeof(struct credit_return_base),
 		sizeof(struct credit_return_base),
 		GFP_KERNEL);
 		GFP_KERNEL);
 	if (!dd->cr_base) {
 	if (!dd->cr_base) {
-		dd_dev_err(dd, "Unable to allocate credit return base\n");
 		ret = -ENOMEM;
 		ret = -ENOMEM;
 		goto done;
 		goto done;
 	}
 	}