On Mon, May 19, 2014 at 09:45:58PM -0600, Bjorn Helgaas wrote: >pbus_size_mem() previously returned 0 for failure and 1 for success. >Change it to return -ENOSPC for failure and 0 for success. > >No functional change. > >Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx> >--- > drivers/pci/setup-bus.c | 35 +++++++++++++++++++++-------------- > 1 file changed, 21 insertions(+), 14 deletions(-) > >diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c >index 589f2261ab0e..caa07fe6a23a 100644 >--- a/drivers/pci/setup-bus.c >+++ b/drivers/pci/setup-bus.c >@@ -915,6 +915,10 @@ static inline resource_size_t calculate_mem_align(resource_size_t *aligns, > * > * Calculate the size of the bus and minimal alignment which > * guarantees that all child resources fit in this size. >+ * >+ * Returns -ENOSPC 0 if there's no available bus resource of the desired type. ^^^ One small question, the 0 here means? -- Richard Yang Help you, Help me -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html