aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/setup-bus.c
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <kw@linux.com>2021-10-13 01:41:36 +0000
committerBjorn Helgaas <bhelgaas@google.com>2021-10-27 13:41:22 -0500
commitfd1ae23b495b3a8a9975e49705b7678f6e2ab67b (patch)
treedbb46ce484e98c9ebb44c29f3cef446e8a04d973 /drivers/pci/setup-bus.c
parentPCI: Remove redundant 'rc' initialization (diff)
downloadlinux-dev-fd1ae23b495b3a8a9975e49705b7678f6e2ab67b.tar.xz
linux-dev-fd1ae23b495b3a8a9975e49705b7678f6e2ab67b.zip
PCI: Prefer 'unsigned int' over bare 'unsigned'
The bare "unsigned" type implicitly means "unsigned int", but the preferred coding style is to use the complete type name. Update the bare use of "unsigned" to the preferred "unsigned int". No change to functionality intended. See a1ce18e4f941 ("checkpatch: warn on bare unsigned or signed declarations without int"). Link: https://lore.kernel.org/r/20211013014136.1117543-1-kw@linux.com Signed-off-by: Krzysztof Wilczyński <kw@linux.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/setup-bus.c')
-rw-r--r--drivers/pci/setup-bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 2ce636937c6e..547396ec50b5 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -1525,7 +1525,7 @@ static void pci_bridge_release_resources(struct pci_bus *bus,
{
struct pci_dev *dev = bus->self;
struct resource *r;
- unsigned old_flags = 0;
+ unsigned int old_flags = 0;
struct resource *b_res;
int idx = 1;