diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2018-04-11 22:02:10 -0700 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2018-04-16 16:54:51 +0800 |
commit | 87af71c2eae53e347194cc6526ffc3f516a7c98e (patch) | |
tree | 8d4d23f4f605c6cd8f61debeac155dd2062424aa /arch/x86/cpu/coreboot | |
parent | fa5e91f778fe8aba1fa9a7d0d7f64abdf3080ac9 (diff) | |
download | u-boot-87af71c2eae53e347194cc6526ffc3f516a7c98e.zip u-boot-87af71c2eae53e347194cc6526ffc3f516a7c98e.tar.gz u-boot-87af71c2eae53e347194cc6526ffc3f516a7c98e.tar.bz2 |
x86: Use 'unsigned int' in install_e820_map() functions
This fixes the following checkpatch warning:
warning: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Diffstat (limited to 'arch/x86/cpu/coreboot')
-rw-r--r-- | arch/x86/cpu/coreboot/sdram.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c index 82407af..05918bc 100644 --- a/arch/x86/cpu/coreboot/sdram.c +++ b/arch/x86/cpu/coreboot/sdram.c @@ -12,12 +12,13 @@ DECLARE_GLOBAL_DATA_PTR; -unsigned install_e820_map(unsigned max_entries, struct e820entry *entries) +unsigned int install_e820_map(unsigned int max_entries, + struct e820entry *entries) { - unsigned num_entries; + unsigned int num_entries; int i; - num_entries = min((unsigned)lib_sysinfo.n_memranges, max_entries); + num_entries = min((unsigned int)lib_sysinfo.n_memranges, max_entries); if (num_entries < lib_sysinfo.n_memranges) { printf("Warning: Limiting e820 map to %d entries.\n", num_entries); |