Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1288641
| From | Suravee Suthikulanit <suravee.suthikulpanit@amd.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v6 4/4] gicv2m: acpi: Introducing GICv2m ACPI support |
| Date | 2015-12-10 17:20 +0100 |
| Message-ID | <qEc6L-5i-25@gated-at.bofh.it> (permalink) |
| References | <qDSB4-460-25@gated-at.bofh.it> <qDSB4-460-43@gated-at.bofh.it> <qE5yi-4b1-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 12/10/2015 3:14 AM, Marc Zyngier wrote:
>> +int __init gicv2m_init(struct fwnode_handle *parent_handle,
>> >+ struct irq_domain *parent)
>> >+{
>> >+ int ret = gicv2m_of_init(parent_handle, parent);
>> >+
>> >+ if (ret)
>> >+ ret = gicv2m_acpi_init(parent);
>> >+ return ret;
> This should really read:
>
> if (is_of_node(parent_handle))
> return gicv2m_of_init(parent_handle, parent);
>
> return gicv2m_acpi_init(parent);
>
> and you can loose the test for NULL in gicv2m_of_init().
>
Right... Your style of returning which is cleaner ;)
I'll update in V7 and send it out shortly.
Thanks,
Suravee
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v6 4/4] gicv2m: acpi: Introducing GICv2m ACPI support Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com> - 2015-12-09 20:30 +0100
Re: [PATCH v6 4/4] gicv2m: acpi: Introducing GICv2m ACPI support Marc Zyngier <marc.zyngier@arm.com> - 2015-12-10 10:20 +0100
Re: [PATCH v6 4/4] gicv2m: acpi: Introducing GICv2m ACPI support Suravee Suthikulanit <suravee.suthikulpanit@amd.com> - 2015-12-10 17:20 +0100
csiph-web