Skip to content

Commit 5e3863f

Browse files
author
Trond Myklebust
committed
SUNRPC: Remove redundant check for the reply length in call_decode()
Now that we're using the xdr_stream functions to decode the header, the test for the minimum reply length is redundant. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 928d42f commit 5e3863f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

net/sunrpc/clnt.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,9 +2392,6 @@ call_decode(struct rpc_task *task)
23922392
WARN_ON(memcmp(&req->rq_rcv_buf, &req->rq_private_buf,
23932393
sizeof(req->rq_rcv_buf)) != 0);
23942394

2395-
if (req->rq_rcv_buf.len < 12)
2396-
goto out_retry;
2397-
23982395
xdr_init_decode(&xdr, &req->rq_rcv_buf,
23992396
req->rq_rcv_buf.head[0].iov_base, req);
24002397
switch (rpc_decode_header(task, &xdr)) {
@@ -2405,7 +2402,6 @@ call_decode(struct rpc_task *task)
24052402
task->tk_pid, __func__, task->tk_status);
24062403
return;
24072404
case -EAGAIN:
2408-
out_retry:
24092405
task->tk_status = 0;
24102406
/* Note: rpc_decode_header() may have freed the RPC slot */
24112407
if (task->tk_rqstp == req) {

0 commit comments

Comments
 (0)