Skip to content

Commit ee0d90d

Browse files
Dr. David Alan Gilbertchucklever
authored andcommitted
sunrpc: Remove unused xprt_iter_get_xprt
xprt_iter_get_xprt() was added by commit 80b14d5 ("SUNRPC: Add a structure to track multiple transports") but is unused. Remove it. Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org> Acked-by: Anna Schumaker <anna.schumaker@oracle.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 966a675 commit ee0d90d

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

include/linux/sunrpc/xprtmultipath.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ extern struct rpc_xprt_switch *xprt_iter_xchg_switch(
7575
struct rpc_xprt_switch *newswitch);
7676

7777
extern struct rpc_xprt *xprt_iter_xprt(struct rpc_xprt_iter *xpi);
78-
extern struct rpc_xprt *xprt_iter_get_xprt(struct rpc_xprt_iter *xpi);
7978
extern struct rpc_xprt *xprt_iter_get_next(struct rpc_xprt_iter *xpi);
8079

8180
extern bool rpc_xprt_switch_has_addr(struct rpc_xprt_switch *xps,

net/sunrpc/xprtmultipath.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -602,23 +602,6 @@ struct rpc_xprt *xprt_iter_get_helper(struct rpc_xprt_iter *xpi,
602602
return ret;
603603
}
604604

605-
/**
606-
* xprt_iter_get_xprt - Returns the rpc_xprt pointed to by the cursor
607-
* @xpi: pointer to rpc_xprt_iter
608-
*
609-
* Returns a reference to the struct rpc_xprt that is currently
610-
* pointed to by the cursor.
611-
*/
612-
struct rpc_xprt *xprt_iter_get_xprt(struct rpc_xprt_iter *xpi)
613-
{
614-
struct rpc_xprt *xprt;
615-
616-
rcu_read_lock();
617-
xprt = xprt_iter_get_helper(xpi, xprt_iter_ops(xpi)->xpi_xprt);
618-
rcu_read_unlock();
619-
return xprt;
620-
}
621-
622605
/**
623606
* xprt_iter_get_next - Returns the next rpc_xprt following the cursor
624607
* @xpi: pointer to rpc_xprt_iter

0 commit comments

Comments
 (0)