9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv
commit7752efcacf41daf34f9fefc5e78131f2afa3d4d7
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 12 Mar 2015 06:36:12 +0000 (12 09:36 +0300)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 12 Mar 2015 09:57:35 +0000 (12 15:27 +0530)
tree84dac466d97c826c1257d035303edb086636d7c1
parent1b6f85e2cb9302a8587772d04983a3ecc0ecfe68
9pfs-proxy: tiny cleanups in proxy_pwritev and proxy_preadv

Don't compare syscall return with -1, use "<0" condition.
Don't introduce useless local variables when we already
have similar variable
Rename local variable to be consistent with other usages
Finally make the two methods, read and write, to be similar to each other

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-proxy.c