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

Commit 3a77d291 authored by Segher Boessenkool's avatar Segher Boessenkool Committed by Paul Mackerras
Browse files

[POWERPC] Fix a compile warning in pci_32.c



__must_check, so do so.

Signed-off-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b9c3fdb0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -581,8 +581,11 @@ pcibios_assign_resources(void)
			if ((r->flags & IORESOURCE_UNSET) && r->end &&
			    (!ppc_md.pcibios_enable_device_hook ||
			     !ppc_md.pcibios_enable_device_hook(dev, 1))) {
				int rc;

				r->flags &= ~IORESOURCE_UNSET;
				pci_assign_resource(dev, idx);
				rc = pci_assign_resource(dev, idx);
				BUG_ON(rc);
			}
		}