From 23602dfd6812dba0499318e1ec25492faa17febb Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 16 Mar 2017 19:00:37 -0700 Subject: soc/intel/broadwell: Add int to unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following issue detected by checkpatch: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' TEST=None Change-Id: Iae22e724b6adae16248db7dc8f822f65bfadae5f Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18873 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Philippe Mathieu-Daudé --- src/soc/intel/broadwell/pcie.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/soc/intel/broadwell/pcie.c') diff --git a/src/soc/intel/broadwell/pcie.c b/src/soc/intel/broadwell/pcie.c index c3d9e13c86..3fb60e82b9 100644 --- a/src/soc/intel/broadwell/pcie.c +++ b/src/soc/intel/broadwell/pcie.c @@ -186,7 +186,7 @@ static void root_port_init_config(device_t dev) static void pch_pcie_device_set_func(int index, int pci_func) { device_t dev; - unsigned new_devfn; + unsigned int new_devfn; dev = rpc.ports[index]; @@ -638,7 +638,8 @@ static void pch_pcie_enable(device_t dev) root_port_commit_config(); } -static void pcie_set_subsystem(device_t dev, unsigned vendor, unsigned device) +static void pcie_set_subsystem(device_t dev, unsigned int vendor, + unsigned int device) { /* NOTE: This is not the default position! */ if (!vendor || !device) -- cgit v1.2.3