Commit 9f780dab authored by Colin Ian King's avatar Colin Ian King Committed by Doug Ledford

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: 470be516 ("IB/core: Add gid attributes to sysfs")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Reviewed-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent bb6a7773
...@@ -336,7 +336,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p, ...@@ -336,7 +336,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p,
union ib_gid gid; union ib_gid gid;
struct ib_gid_attr gid_attr = {}; struct ib_gid_attr gid_attr = {};
ssize_t ret; ssize_t ret;
va_list args;
ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid, ret = ib_query_gid(p->ibdev, p->port_num, tab_attr->index, &gid,
&gid_attr); &gid_attr);
...@@ -348,7 +347,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p, ...@@ -348,7 +347,6 @@ static ssize_t _show_port_gid_attr(struct ib_port *p,
err: err:
if (gid_attr.ndev) if (gid_attr.ndev)
dev_put(gid_attr.ndev); dev_put(gid_attr.ndev);
va_end(args);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment