summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pci-thunder-ecam.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/controller/pci-thunder-ecam.c
parentff5d3bb6e16d644eabb675ec1c6ef242239ca5f1 (diff)
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/controller/pci-thunder-ecam.c')
-rw-r--r--drivers/pci/controller/pci-thunder-ecam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/controller/pci-thunder-ecam.c b/drivers/pci/controller/pci-thunder-ecam.c
index ffd84656544f..e9d5ca245f5e 100644
--- a/drivers/pci/controller/pci-thunder-ecam.c
+++ b/drivers/pci/controller/pci-thunder-ecam.c
@@ -17,7 +17,7 @@ static void set_val(u32 v, int where, int size, u32 *val)
{
int shift = (where & 3) * 8;
- pr_debug("set_val %04x: %08x\n", (unsigned)(where & ~3), v);
+ pr_debug("set_val %04x: %08x\n", (unsigned int)(where & ~3), v);
v >>= shift;
if (size == 1)
v &= 0xff;
@@ -187,7 +187,7 @@ static int thunder_ecam_config_read(struct pci_bus *bus, unsigned int devfn,
pr_debug("%04x:%04x - Fix pass#: %08x, where: %03x, devfn: %03x\n",
vendor_device & 0xffff, vendor_device >> 16, class_rev,
- (unsigned) where, devfn);
+ (unsigned int)where, devfn);
/* Check for non type-00 header */
if (cfg_type == 0) {