From 01bf7aa774bdc5a11018670860f0698bd5409dd8 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 21 Jan 2024 12:22:47 +0100 Subject: Removed a useless test in getProtection utility function --- src/custommem.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/custommem.c b/src/custommem.c index 99b428c0..c1eca7e0 100644 --- a/src/custommem.c +++ b/src/custommem.c @@ -1225,8 +1225,6 @@ void freeProtection(uintptr_t addr, size_t size) uint32_t getProtection(uintptr_t addr) { - if(addr>=(1LL<<48)) - return 0; mutex_lock(&mutex_prot); uint32_t ret = rb_get(memprot, addr); mutex_unlock(&mutex_prot); -- cgit 1.4.1