]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/hfi1: Remove debug prints after allocation failure
authorLeon Romanovsky <leon@kernel.org>
Thu, 3 Nov 2016 14:44:14 +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/hw/hfi1/pio.c

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