From: Ian Jackson Subject: Re: [PATCH v3] Set {ident}_suite runvar when install a Debian guest. Date: Tue, 24 Nov 2015 14:17:26 +0000 Message-ID: <22100.29046.511111.904591@mariner.uk.xensource.com> References: <1448275201.4973.36.camel@citrix.com> <1448357106-14875-1-git-send-email-ian.campbell@citrix.com> <22100.18250.523177.171252@mariner.uk.xensource.com> <1448368896.4973.81.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1448368896.4973.81.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH v3] Set {ident}_suite runvar when install = a Debian guest."): > On Tue, 2015-11-24 at 11:17 +0000, Ian Jackson wrote: > > If you do this instead > > =A0 +=A0=A0=A0=A0$gho->{Suite} //=3D guest_var($gho,'suite',undef); > > the previous line (`return ... if') is not needed. > = > Done. (I suppose this will elide the call to guest_var if ->{Suite} is > already defined, like an || would). Indeed. // is like || but looks at definedness rather than trueishness. > > > +=A0=A0=A0=A0if ( ! $gho->{Suite} ) { > > = > > This is stylistically odd IMO.=A0=A0Seems to have been written by a > > hypervisor maintainer :-). > = > I think you are referring to the too many spaces and would normally do > if (!$gho->{Suite}) { > or was there something else? Yes, just that. (Also saw your other mail, thanks.) Thanks, Ian.