[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 2/6] libxc/save: Adjust stream-position callbacks for checkpointed streams
On Tue, May 12, 2015 at 10:35 AM, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote: > diff --git a/tools/libxc/xc_sr_save_x86_hvm.c > b/tools/libxc/xc_sr_save_x86_hvm.c > index 58efdb9..f4604db 100644 > --- a/tools/libxc/xc_sr_save_x86_hvm.c > +++ b/tools/libxc/xc_sr_save_x86_hvm.c > @@ -184,7 +184,13 @@ static int x86_hvm_start_of_stream(struct xc_sr_context > *ctx) > return 0; > } > > -static int x86_hvm_end_of_stream(struct xc_sr_context *ctx) > +static int x86_hvm_start_of_checkpoint(struct xc_sr_context *ctx) > +{ > + /* no-op */ > + return 0; > +} > + > +static int x86_hvm_end_of_checkpoint(struct xc_sr_context *ctx) > { > int rc; > > @@ -209,7 +215,7 @@ static int x86_hvm_end_of_stream(struct xc_sr_context > *ctx) > if ( rc ) > return rc; > > - return rc; > + return 0; > } Nit: It looks like this boils down to: if ( rc != 0 ) return rc; else return 0; Why not just return rc and be done with it? (Just skimming through, no other comments ATM) -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |