Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334050
b: refs/heads/master
c: af6d572
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Aug 21, 2012
1 parent 032cfe0 commit 4f0ac9d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f23abfdb94fda3108441530cb4a813088d3f9176
refs/heads/master: af6d572134b012ca92c4efc8a2f1cadbe5d01064
3 changes: 1 addition & 2 deletions trunk/include/linux/sunrpc/svc_xprt.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ static inline size_t svc_addr_len(const struct sockaddr *sa)
case AF_INET6:
return sizeof(struct sockaddr_in6);
}

return 0;
BUG();
}

static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt)
Expand Down
2 changes: 0 additions & 2 deletions trunk/net/sunrpc/svcsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,6 @@ static int svc_udp_recvfrom(struct svc_rqst *rqstp)
return -EAGAIN;
}
len = svc_addr_len(svc_addr(rqstp));
if (len == 0)
return -EAFNOSUPPORT;
rqstp->rq_addrlen = len;
if (skb->tstamp.tv64 == 0) {
skb->tstamp = ktime_get_real();
Expand Down

0 comments on commit 4f0ac9d

Please sign in to comment.