On 2015/10/15 23:39, Marc Zyngier wrote: <snit> > +int msi_domain_prepare_irqs(struct irq_domain *domain, struct device *dev, > + int nvec, msi_alloc_info_t *arg) > +{ > + struct msi_domain_info *info = domain->host_data; > + struct msi_domain_ops *ops = info->ops; > + int ret; > + > + ret = ops->msi_check(domain, info, dev); > + if (ret == 0) > + ret = ops->msi_prepare(domain, dev, nvec, arg); > + if (ret) > + return ret; > + > + return 0; Seems a simple "return ret" is enough:) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- [PATCH RFC 0/7] Adding core support for wire-MSI bridges Marc Zyngier
- [PATCH RFC 7/7] irqchip: [Example] dummy wired inter... Marc Zyngier
- [PATCH RFC 3/7] irqdomain: Make irq_domain_alloc_irq... Marc Zyngier
- [PATCH RFC 5/7] genirq/msi: Add msi_domain_populate_... Marc Zyngier
- [PATCH RFC 6/7] platform-msi: Allow creation of a MS... Marc Zyngier
- [PATCH RFC 4/7] genirq/msi: Make the .prepare callba... Marc Zyngier
- RE: [PATCH RFC 4/7] genirq/msi: Make the .prepar... Gabriele Paoloni
- Re: [PATCH RFC 4/7] genirq/msi: Make the .pr... Marc Zyngier
- RE: [PATCH RFC 4/7] genirq/msi: Make the... Gabriele Paoloni
- Re: [PATCH RFC 4/7] genirq/msi: Make the .prepar... Jiang Liu
- Re: [PATCH RFC 4/7] genirq/msi: Make the .pr... Marc Zyngier
- [PATCH RFC 1/7] platform-msi: Allow MSIs to be alloc... Marc Zyngier
- [PATCH RFC 2/7] platform-msi: Factor out allocation/... Marc Zyngier
- Re: [PATCH RFC 0/7] Adding core support for wire-MSI... Arnd Bergmann
- Re: [PATCH RFC 0/7] Adding core support for wire... Marc Zyngier
- Re: [PATCH RFC 0/7] Adding core support for ... Arnd Bergmann
- Re: [PATCH RFC 0/7] Adding core support ... Marc Zyngier
- Re: [PATCH RFC 0/7] Adding core sup... Arnd Bergmann