]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
IB/rxe: Remove and fix debug prints after allocation failure
authorLeon Romanovsky <leon@kernel.org>
Thu, 3 Nov 2016 14:44:23 +0000 (16:44 +0200)
committerDoug Ledford <dledford@redhat.com>
Sat, 3 Dec 2016 18:12:52 +0000 (13:12 -0500)
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>
drivers/infiniband/sw/rxe/rxe_pool.c

index 6bac0717c5408653f489915162b57a2612abe75b..d723947a8542dc2283c747036ecedd9ad2aa7bac 100644 (file)
@@ -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);
        pool->table = kmalloc(size, GFP_KERNEL);
        if (!pool->table) {
-               pr_warn("no memory for bit table\n");
                err = -ENOMEM;
                goto out;
        }