|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v12 1/3] xen/mem_sharing: VM forking
> > +static int bring_up_vcpus(struct domain *cd, struct domain *d)
> > +{
> > + unsigned int i;
> > + int ret = -EINVAL;
>
> Nit: you can get rid of ret...
>
> > +
> > + if ( d->max_vcpus != cd->max_vcpus ||
> > + (ret = cpupool_move_domain(cd, d->cpupool)) )
> > + return ret;
>
> ...and just return -EINVAL here. Seeing as it's not used anywhere
> else.
>
It is actually still needed, note that we store the return value of
cpupool_move_domain in it.
Tamas
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |