Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431155 > unrolled thread

[PATCH 1/1] i40iw: do not print unitialized variables in error message

Started byNicolas Iooss <nicolas.iooss_linux@m4x.org>
First post2016-06-25 18:10 +0200
Last post2016-06-25 18:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/1] i40iw: do not print unitialized variables in error message Nicolas Iooss <nicolas.iooss_linux@m4x.org> - 2016-06-25 18:10 +0200

#1431155 — [PATCH 1/1] i40iw: do not print unitialized variables in error message

FromNicolas Iooss <nicolas.iooss_linux@m4x.org>
Date2016-06-25 18:10 +0200
Subject[PATCH 1/1] i40iw: do not print unitialized variables in error message
Message-ID<rNYjD-7B7-7@gated-at.bofh.it>
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>
---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 3 +--
 1 file changed, 1 insertion(+), 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);
-- 
2.9.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web