Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efe7cf2d authored by Len Brown's avatar Len Brown Committed by Linus Torvalds
Browse files

pnpacpi: print resource shortage message only once (more)

parent 46a39c1c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -215,6 +215,7 @@ static void pnpacpi_parse_allocated_ioresource(struct pnp_resource_table *res,
	} else if (!warned) {
		printk(KERN_ERR "pnpacpi: exceeded the max number of IO "
				"resources: %d \n", PNP_MAX_PORT);
		warned = 1;
	}
}

@@ -242,6 +243,7 @@ static void pnpacpi_parse_allocated_memresource(struct pnp_resource_table *res,
	} else if (!warned) {
		printk(KERN_ERR "pnpacpi: exceeded the max number of mem "
				"resources: %d\n", PNP_MAX_MEM);
		warned = 1;
	}
}