aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@parallels.com>2010-10-05 15:30:19 -0400
committerJ. Bruce Fields <bfields@redhat.com>2010-10-19 10:48:16 -0400
commit8f3a6de313391b6910aa7db185eb9f3e930a51cf (patch)
tree9f288895541f1f5feb06f6f3964671d63850df2f /net/sunrpc/xprt.c
parent50fa0d40a9d601bb8e6c9a595e90940bc846f7df (diff)
sunrpc: Turn list_for_each-s into the ..._entry-s
Saves some lines of code and some branticks when reading one. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
-rw-r--r--net/sunrpc/xprt.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c
index 64a4a94fd6dd..4c8f18aff7c3 100644
--- a/net/sunrpc/xprt.c
+++ b/net/sunrpc/xprt.c
@@ -755,13 +755,11 @@ static void xprt_connect_status(struct rpc_task *task)
755 */ 755 */
756struct rpc_rqst *xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid) 756struct rpc_rqst *xprt_lookup_rqst(struct rpc_xprt *xprt, __be32 xid)
757{ 757{
758 struct list_head *pos; 758 struct rpc_rqst *entry;
759 759
760 list_for_each(pos, &xprt->recv) { 760 list_for_each_entry(entry, &xprt->recv, rq_list)
761 struct rpc_rqst *entry = list_entry(pos, struct rpc_rqst, rq_list);
762 if (entry->rq_xid == xid) 761 if (entry->rq_xid == xid)
763 return entry; 762 return entry;
764 }
765 763
766 dprintk("RPC: xprt_lookup_rqst did not find xid %08x\n", 764 dprintk("RPC: xprt_lookup_rqst did not find xid %08x\n",
767 ntohl(xid)); 765 ntohl(xid));