[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v4 2/5] xl: improve return and exit codes of scheduling related functions



On Tue, 2015-10-27 at 13:50 +0000, Wei Liu wrote:
> On Tue, Oct 27, 2015 at 06:18:55PM +0530, Harmandeep Kaur wrote:

> > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
> > index 646b281..b101aff 100644
> > --- a/tools/libxl/xl_cmdimpl.c
> > +++ b/tools/libxl/xl_cmdimpl.c
> > @@ -5793,18 +5793,15 @@ int main_sharing(int argc, char **argv)
> >  static int sched_domain_get(libxl_scheduler sched, int domid,
> >                              libxl_domain_sched_params *scinfo)
> >  {
> > -    int rc;
> > -
> > -    rc = libxl_domain_sched_params_get(ctx, domid, scinfo);
> > -    if (rc) {
> > +    if (libxl_domain_sched_params_get(ctx, domid, scinfo)){
> 
> This, and other instances in both patch 2 and 3, violates coding
> style.
> You need to have a space before "{".
> 
Bha, I guess I was concentrating on the "return / exit()" changes, and
managed to miss these! :-/

> After that, you can add my ack to all your patches. I haven't
> carefully
> read through every line of change, but I think Dario's review is
> sufficient
> and thorough. 
>
And yet, I managed to miss those coding style issues. :-(

> Thanks Dario.
> 
Thanks and Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.