From: WANG Chao Date: Wed, 7 Jan 2015 03:37:38 +0000 (+0800) Subject: x86, e820: Clean up sanitize_e820_map() users X-Git-Tag: fixes-v4.0-rc1~171^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d574ffa1066003569ed5cdaeabf44597564ce975;p=pandora-kernel.git x86, e820: Clean up sanitize_e820_map() users The argument 3 of sanitize_e820_map() will only be updated upon a successful sanitization. Some of the callers have extra conditionals for the same purpose. Clean them up. default_machine_specific_memory_setup() must keep the extra conditional because boot_params.e820_entries is an u8 and not an u32, so the direct update would overwrite other fields in boot_params. [ tglx: Massaged changelog ] Signed-off-by: WANG Chao Acked-by: David Rientjes Cc: Grygorii Strashko Cc: Pavel Machek Cc: Lee Chun-Yi Cc: Xishi Qiu Link: http://lkml.kernel.org/r/1420601859-18439-1-git-send-email-chaowang@redhat.com Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed