diff options
author | Nicolas Iooss <nicolas.iooss_linux@m4x.org> | 2016-06-25 17:55:07 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-07-12 10:46:34 -0400 |
commit | b0548cff99ba927730d4f0c306b98cb6b6aa7cf7 (patch) | |
tree | 1ba18cd95e71d706b36741e3fb93179d20e95355 /drivers/infiniband/hw/i40iw/i40iw_main.c | |
parent | c5a81d11d756bfa2b7215463b5908006871bd4fa (diff) | |
download | blackbird-op-linux-b0548cff99ba927730d4f0c306b98cb6b6aa7cf7.tar.gz blackbird-op-linux-b0548cff99ba927730d4f0c306b98cb6b6aa7cf7.zip |
i40iw: do not print unitialized variables in error message
i40iw_create_cqp() printed the contents of variables maj_err and min_err
in an error message before they could be initialized (by calling
dev->cqp_ops->cqp_create).
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_main.c')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c index c963cad92f5a..6e9081380a27 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_main.c +++ b/drivers/infiniband/hw/i40iw/i40iw_main.c @@ -600,8 +600,7 @@ static enum i40iw_status_code i40iw_create_cqp(struct i40iw_device *iwdev) cqp_init_info.scratch_array = cqp->scratch_array; status = dev->cqp_ops->cqp_init(dev->cqp, &cqp_init_info); if (status) { - i40iw_pr_err("cqp init status %d maj_err %d min_err %d\n", - status, maj_err, min_err); + i40iw_pr_err("cqp init status %d\n", status); goto exit; } status = dev->cqp_ops->cqp_create(dev->cqp, true, &maj_err, &min_err); |