Thread (13 messages) 13 messages, 6 authors, 2015-09-30

[PATCH 2/4] of: irq: Add support for the new definition of "msi-parent"

From: Thomas Gleixner <hidden>
Date: 2015-09-27 10:29:53
Also in: lkml

On Wed, 23 Sep 2015, Sergei Shtylyov wrote:
quoted
-	d = irq_find_matching_host(msi_np, DOMAIN_BUS_PLATFORM_MSI);
-	if (!d)
-		d = irq_find_host(msi_np);
-	dev_set_msi_domain(dev, d);
+		d = irq_find_matching_host(args.np, DOMAIN_BUS_PLATFORM_MSI);
+		if (!d)
		if (!d) {
quoted
+			d = irq_find_host(args.np);
+
+		if (d) {
		} else {
quoted
+			dev_set_msi_domain(dev, d);
+			return;
+		}
Errm, no. How is that equivalent?

Marc:

      d = foo();
      if (!d)
      	 d = bar();
      if (d) {
         bla(d);
	 return;
      }

Yours:

      d = foo();
      if (!d) {
      	 d = bar();
      } else {
         bla(d);
	 return;
      }

Hmm?

Thanks,

	tglx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help