summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sysfs.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-01-25 18:38:06 +0000
committerDoug Ledford <dledford@redhat.com>2016-02-04 07:09:07 -0500
commit9f780dab7fb5618ee8bacbf6f91832374231c30c (patch)
tree8f893d7cc4d16d17e23b1735c232d0232f5894ab /drivers/infiniband/core/sysfs.c
parentbb6a777369449d15a4a890306d2f925cae720e1c (diff)
downloadlinux-stable-9f780dab7fb5618ee8bacbf6f91832374231c30c.tar.gz
linux-stable-9f780dab7fb5618ee8bacbf6f91832374231c30c.tar.bz2
linux-stable-9f780dab7fb5618ee8bacbf6f91832374231c30c.zip
IB/sysfs: remove unused va_list args
_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> Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/sysfs.c')
-rw-r--r--drivers/infiniband/core/sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c
index 3de93517efe4..ec46386e3c7f 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;
}