Re: [PATCH v6 4/4] gicv2m: acpi: Introducing GICv2m ACPI support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux