]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
IB/sysfs: remove unused va_list args
authorColin Ian King <colin.king@canonical.com>
Mon, 25 Jan 2016 18:38:06 +0000 (18:38 +0000)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 Feb 2016 12:09:07 +0000 (07:09 -0500)
_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>
drivers/infiniband/core/sysfs.c

index 3de93517efe43b097d7f58e37cfbe36bd8ab0f65..ec46386e3c7f537c750e2e590288273fb44420ef 100644 (file)
@@ -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;
 }