From: "Jan Beulich" Subject: Re: [PATCH v4 26/33] xen/passthrough: Extend XEN_DOMCTL_*assign_device to support DT device Date: Fri, 20 Mar 2015 11:01:05 +0000 Message-ID: <550C0C01020000780006BF3F@mail.emea.novell.com> References: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> <1426793399-6283-27-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YYufr-0003Hh-2V for xen-devel@lists.xenproject.org; Fri, 20 Mar 2015 11:01:07 +0000 In-Reply-To: <1426793399-6283-27-git-send-email-julien.grall@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: Wei Liu , ian.campbell@citrix.com, tim@xen.org, Ian Jackson , stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 19.03.15 at 20:29, wrote: > @@ -344,6 +344,13 @@ int iommu_do_domctl( > ret = iommu_do_pci_domctl(domctl, d, u_domctl); > #endif > > +#ifdef HAS_DEVICE_TREE > + if ( ret != -ENODEV) > + return ret; > + > + ret = iommu_do_dt_domctl(domctl, d, u_domctl); > +#endif > + > return ret; > } I think inverting the if() condition and avoiding the extra return path would be better, particularly in case any new code would get added between the #endif and the final return. With that done Acked-by: Jan Beulich for the non-ARM, non-tools parts. Jan