ia64/xen-unstable

changeset 986:9ceeacd05d1f

bitkeeper revision 1.636.1.1 (3fcb7b62Mifz8pPYuvEwJUTNwxzVmg)

Propagate return values as far as possible.
author br260@laudney.cl.cam.ac.uk
date Mon Dec 01 17:33:22 2003 +0000 (2003-12-01)
parents c6cfb98dc402
children d3717f48d4bb
files tools/xc/lib/xc_private.h
line diff
     1.1 --- a/tools/xc/lib/xc_private.h	Tue Nov 25 15:36:17 2003 +0000
     1.2 +++ b/tools/xc/lib/xc_private.h	Mon Dec 01 17:33:22 2003 +0000
     1.3 @@ -149,11 +149,9 @@ static inline int do_block_io_op(int xc_
     1.4          goto out1;
     1.5      }
     1.6  
     1.7 -    if ( do_xen_hypercall(xc_handle, &hypercall) < 0 )
     1.8 +    if ( (ret = do_xen_hypercall(xc_handle, &hypercall)) < 0 )
     1.9          goto out2;
    1.10  
    1.11 -    ret = 0;
    1.12 -
    1.13   out2: (void)munlock(op, sizeof(*op));
    1.14   out1: return ret;
    1.15  }