summaryrefslogtreecommitdiffstats
path: root/drivers/pci/msi.c
diff options
context:
space:
mode:
authorKrzysztof Wilczyński <kw@linux.com>2021-10-13 03:41:36 +0200
committerBjorn Helgaas <bhelgaas@google.com>2021-10-27 20:41:22 +0200
commitfd1ae23b495b3a8a9975e49705b7678f6e2ab67b (patch)
treedbb46ce484e98c9ebb44c29f3cef446e8a04d973 /drivers/pci/msi.c
parentPCI: Remove redundant 'rc' initialization (diff)
downloadlinux-fd1ae23b495b3a8a9975e49705b7678f6e2ab67b.tar.xz
linux-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/msi.c')
-rw-r--r--drivers/pci/msi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index 0099a00af361..bdc6ba7f39f0 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -579,7 +579,8 @@ err:
return ret;
}
-static void __iomem *msix_map_region(struct pci_dev *dev, unsigned nr_entries)
+static void __iomem *msix_map_region(struct pci_dev *dev,
+ unsigned int nr_entries)
{
resource_size_t phys_addr;
u32 table_offset;