From: Doug Ledford <dledford@redhat.com>
To: Yuval Shaia <yuval.shaia@oracle.com>,
Shiraz Saleem <shiraz.saleem@intel.com>
Cc: linux-rdma@vger.kernel.org, kernel-janitors@vger.kernel.org,
dan.carpenter@oracle.com
Subject: Re: [PATCH] i40iw: Set maj_err and min_err in i40iw_sc_cqp_create
Date: Tue, 24 Jan 2017 16:23:54 -0500 [thread overview]
Message-ID: <1485293034.43764.75.camel@redhat.com> (raw)
In-Reply-To: <20170118195433.GA17688@yuval-lap>
[-- Attachment #1: Type: text/plain, Size: 1379 bytes --]
On Wed, 2017-01-18 at 21:54 +0200, Yuval Shaia wrote:
> On Wed, Jan 18, 2017 at 11:48:29AM -0600, Shiraz Saleem wrote:
> >
> > Set maj_err and min_err in i40iw_sc_cqp_create so that it
> > returns correct values for all return cases. This also
> > addresses an uninitialized variable warning for maj_err and
> > min_err in i40iw_create_cqp.
> >
> > Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> > Reported-by: Yuval Shaia <yuval.shaia@oracle.com>
> > Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
> > ---
> > drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
> > b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
> > index 2c4b4d0..47a2529 100644
> > --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
> > +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c
> > @@ -315,6 +315,9 @@ static enum i40iw_status_code
> > i40iw_sc_cqp_create(struct i40iw_sc_cqp *cqp,
> > u32 cnt = 0, p1, p2, val = 0, err_code;
> > enum i40iw_status_code ret_code;
> >
> > + *maj_err = 0;
> > + *min_err = 0;
> > +
>
> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Thanks, applied to -next.
--
Doug Ledford <dledford@redhat.com>
GPG KeyID: B826A3330E572FDD
Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2017-01-24 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-18 17:48 [PATCH] i40iw: Set maj_err and min_err in i40iw_sc_cqp_create Shiraz Saleem
[not found] ` <1484761709-6072-1-git-send-email-shiraz.saleem-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-01-18 19:54 ` Yuval Shaia
2017-01-24 21:23 ` Doug Ledford [this message]
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=1485293034.43764.75.camel@redhat.com \
--to=dledford@redhat.com \
--cc=dan.carpenter@oracle.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=shiraz.saleem@intel.com \
--cc=yuval.shaia@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox