Browse Source

IB/rxe: Remove and fix 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
907610bfdf
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/infiniband/sw/rxe/rxe_pool.c

+ 0 - 1
drivers/infiniband/sw/rxe/rxe_pool.c

@@ -180,7 +180,6 @@ static int rxe_pool_init_index(struct rxe_pool *pool, u32 max, u32 min)
 	size = BITS_TO_LONGS(max - min + 1) * sizeof(long);
 	size = BITS_TO_LONGS(max - min + 1) * sizeof(long);
 	pool->table = kmalloc(size, GFP_KERNEL);
 	pool->table = kmalloc(size, GFP_KERNEL);
 	if (!pool->table) {
 	if (!pool->table) {
-		pr_warn("no memory for bit table\n");
 		err = -ENOMEM;
 		err = -ENOMEM;
 		goto out;
 		goto out;
 	}
 	}