]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sunrpc/svc.c
Merge git://git.infradead.org/iommu-2.6
[karo-tx-linux.git] / net / sunrpc / svc.c
index 952f206ff307a42b8a7bb20066dcf6ed5e3ab2c9..538ca433a56cc72e2bae671e2b74174cb8efb3a8 100644 (file)
@@ -1103,8 +1103,9 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
                                procp->pc_release(rqstp, NULL, rqstp->rq_resp);
                        goto dropit;
                }
-               if (*statp == rpc_success && (xdr = procp->pc_encode)
-                && !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) {
+               if (*statp == rpc_success &&
+                   (xdr = procp->pc_encode) &&
+                   !xdr(rqstp, resv->iov_base+resv->iov_len, rqstp->rq_resp)) {
                        dprintk("svc: failed to encode reply\n");
                        /* serv->sv_stats->rpcsystemerr++; */
                        *statp = rpc_system_err;