From 9765eb7d52e426445dfdcde81de885d2cc61a940 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Wed, 24 Aug 2011 17:07:45 -0400 Subject: [PATCH] simplifying logic in upcall_marshall --- daemon/upcall.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/daemon/upcall.c b/daemon/upcall.c index 5169b5c..ab50d51 100644 --- a/daemon/upcall.c +++ b/daemon/upcall.c @@ -159,7 +159,6 @@ void upcall_marshall( IN uint32_t length, OUT uint32_t *length_out) { - int status = NO_ERROR; const nfs41_upcall_op *op; unsigned char *orig_buf = buffer; const uint32_t total = length, orig_len = length; @@ -179,11 +178,8 @@ write_downcall: /* marshall the operation's results */ op = g_upcall_op_table[upcall->opcode]; if (op && op->marshall) { - status = op->marshall(buffer, &length, upcall); - if (status) { - upcall->status = status; + if ((upcall->status = op->marshall(buffer, &length, upcall))) goto write_downcall; - } } out: *length_out = total - length;