In overlap check, same expression is repeated twice. Remove one of them. Signed-off-by: Gaurav Singh <gaurav1...@gmail.com> --- arch/x86/mm/pat/set_memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c index 77e04304a2a7..7d44b4863ee5 100644 --- a/arch/x86/mm/pat/set_memory.c +++ b/arch/x86/mm/pat/set_memory.c @@ -388,8 +388,7 @@ static void cpa_flush(struct cpa_data *data, int cache) static bool overlaps(unsigned long r1_start, unsigned long r1_end, unsigned long r2_start, unsigned long r2_end) { - return (r1_start <= r2_end && r1_end >= r2_start) || - (r2_start <= r1_end && r2_end >= r1_start); + return (r1_start <= r2_end && r1_end >= r2_start); } #ifdef CONFIG_PCI_BIOS -- 2.17.1