libmultipath: get_ana_info(): remove unused parameter
authorMartin Wilck <mwilck@suse.com>
Sat, 12 Oct 2019 21:28:08 +0000 (21:28 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Mon, 2 Mar 2020 08:17:31 +0000 (09:17 +0100)
Signed-off-by: Martin Wilck <mwilck@suse.com>
libmultipath/prioritizers/ana.c

index 2673d9d..bcb1dbf 100644 (file)
@@ -106,7 +106,7 @@ static int get_ana_state(__u32 nsid, __u32 anagrpid, void *ana_log,
        return -ANA_ERR_GETANAS_NOTFOUND;
 }
 
-int get_ana_info(struct path * pp, unsigned int timeout)
+static int get_ana_info(struct path * pp)
 {
        int     rc;
        __u32 nsid;
@@ -209,7 +209,7 @@ int getprio(struct path *pp, char *args, unsigned int timeout)
        if (pp->fd < 0)
                rc = -ANA_ERR_NO_INFORMATION;
        else
-               rc = get_ana_info(pp, timeout);
+               rc = get_ana_info(pp);
 
        switch (rc) {
        case NVME_ANA_OPTIMIZED: