From: Dan Carpenter <dan.carpenter@oracle.com>
To: Faisal Latif <faisal.latif@intel.com>
Cc: Shiraz Saleem <shiraz.saleem@intel.com>,
Doug Ledford <dledford@redhat.com>,
Sean Hefty <sean.hefty@intel.com>,
Hal Rosenstock <hal.rosenstock@gmail.com>,
linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: [patch] i40iw: silence an uninitialized variable warning
Date: Wed, 18 Jan 2017 10:34:53 +0000 [thread overview]
Message-ID: <20170118103452.GA12778@mwanda> (raw)
These can be used without being uninitialized but it's only a printk()
so it's not the end of the world.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 2728af3..7b78a17 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -561,7 +561,7 @@ static enum i40iw_status_code i40iw_create_cqp(struct i40iw_device *iwdev)
struct i40iw_sc_dev *dev = &iwdev->sc_dev;
struct i40iw_cqp_init_info cqp_init_info;
struct i40iw_cqp *cqp = &iwdev->cqp;
- u16 maj_err, min_err;
+ u16 maj_err = 0, min_err = 0;
int i;
cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), GFP_KERNEL);
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Faisal Latif <faisal.latif@intel.com>
Cc: Shiraz Saleem <shiraz.saleem@intel.com>,
Doug Ledford <dledford@redhat.com>,
Sean Hefty <sean.hefty@intel.com>,
Hal Rosenstock <hal.rosenstock@gmail.com>,
linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: [patch] i40iw: silence an uninitialized variable warning
Date: Wed, 18 Jan 2017 13:34:53 +0300 [thread overview]
Message-ID: <20170118103452.GA12778@mwanda> (raw)
These can be used without being uninitialized but it's only a printk()
so it's not the end of the world.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 2728af3..7b78a17 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -561,7 +561,7 @@ static enum i40iw_status_code i40iw_create_cqp(struct i40iw_device *iwdev)
struct i40iw_sc_dev *dev = &iwdev->sc_dev;
struct i40iw_cqp_init_info cqp_init_info;
struct i40iw_cqp *cqp = &iwdev->cqp;
- u16 maj_err, min_err;
+ u16 maj_err = 0, min_err = 0;
int i;
cqp->cqp_requests = kcalloc(sqsize, sizeof(*cqp->cqp_requests), GFP_KERNEL);
next reply other threads:[~2017-01-18 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-18 10:34 Dan Carpenter [this message]
2017-01-18 10:34 ` [patch] i40iw: silence an uninitialized variable warning Dan Carpenter
2017-01-18 11:19 ` Yuval Shaia
2017-01-18 11:19 ` Yuval Shaia
2017-01-24 21:24 ` Doug Ledford
2017-01-24 21:24 ` Doug Ledford
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170118103452.GA12778@mwanda \
--to=dan.carpenter@oracle.com \
--cc=dledford@redhat.com \
--cc=faisal.latif@intel.com \
--cc=hal.rosenstock@gmail.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=sean.hefty@intel.com \
--cc=shiraz.saleem@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.