From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YU01X-0004YB-20 for qemu-devel@nongnu.org; Fri, 06 Mar 2015 16:43:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YU01T-0003nA-TR for qemu-devel@nongnu.org; Fri, 06 Mar 2015 16:43:11 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:54238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YU01T-0003mv-M8 for qemu-devel@nongnu.org; Fri, 06 Mar 2015 16:43:07 -0500 From: Michael Tokarev Date: Sat, 7 Mar 2015 00:43:01 +0300 Message-Id: Subject: [Qemu-devel] [PATCH v3 0/3] RFC: 9pfs-proxy: simplify/cleanup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Aneesh Kumar K.V" Cc: Michael Tokarev , qemu-devel@nongnu.org Try to make the code a bit less ugly. First by moving errno = -retval to a common place, and second by simplifying common place a lot. What's left is v9fs_receive_response(). V3: merge several small patches into larger ones, drop trivial stuff Michael Tokarev (3): 9pfs-proxy: simplify error handling fsdev: introduce v9fs_vmarshal() and v9fs_vunmarshal() 9pfs-proxy: remove one half of redundrand code fsdev/virtio-9p-marshal.c | 38 +++-- fsdev/virtio-9p-marshal.h | 6 + hw/9pfs/virtio-9p-proxy.c | 405 +++++----------------------------------------- 3 files changed, 77 insertions(+), 372 deletions(-) -- 2.1.4