From: "ira.weiny" <ira.weiny@intel.com>
To: Colin King <colin.king@canonical.com>
Cc: Doug Ledford <dledford@redhat.com>,
Sean Hefty <sean.hefty@intel.com>,
Hal Rosenstock <hal.rosenstock@gmail.com>,
Christoph Lameter <cl@linux.com>,
Matan Barak <matanb@mellanox.com>,
Jason Gunthorpe <jgunthorpe@obsidianresearch.com>,
Or Gerlitz <ogerlitz@mellanox.com>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel-team@ubuntu.com
Subject: Re: [PATCH][V2] IB/sysfs: remove unused va_list args
Date: Mon, 25 Jan 2016 13:41:50 -0500 [thread overview]
Message-ID: <20160125184150.GB18364@phlsvsds.ph.intel.com> (raw)
In-Reply-To: <1453747086-31000-1-git-send-email-colin.king@canonical.com>
On Mon, Jan 25, 2016 at 06:38:06PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> _show_port_gid_attr performs a va_end on some unused va_list args.
> Clean this up by removing the args completely.
>
> Fixes: 470be516a226e8 ("IB/core: Add gid attributes to sysfs")
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
> ---
> drivers/infiniband/core/sysfs.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
> index 3de9351..ec46386 100644
> --- a/drivers/infiniband/core/sysfs.c
> +++ b/drivers/infiniband/core/sysfs.c
> @@ -336,7 +336,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p,
> union ib_gid gid;
> struct ib_gid_attr gid_attr = {};
> ssize_t ret;
> - va_list args;
>
> ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid,
> &gid_attr);
> @@ -348,7 +347,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p,
> err:
> if (gid_attr.ndev)
> dev_put(gid_attr.ndev);
> - va_end(args);
> return ret;
> }
>
> --
> 1.9.1
>
next prev parent reply other threads:[~2016-01-25 18:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-25 18:38 [PATCH][V2] IB/sysfs: remove unused va_list args Colin King
2016-01-25 18:41 ` ira.weiny [this message]
[not found] ` <1453747086-31000-1-git-send-email-colin.king-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org>
2016-02-04 12:12 ` 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=20160125184150.GB18364@phlsvsds.ph.intel.com \
--to=ira.weiny@intel.com \
--cc=cl@linux.com \
--cc=colin.king@canonical.com \
--cc=dledford@redhat.com \
--cc=hal.rosenstock@gmail.com \
--cc=jgunthorpe@obsidianresearch.com \
--cc=kernel-team@ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=matanb@mellanox.com \
--cc=ogerlitz@mellanox.com \
--cc=sean.hefty@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).