[Crash-utility] [PATCH RFC 03/14] memory: use & for a bitwise operation

Oleksandr Natalenko oleksandr at redhat.com
Fri Oct 27 08:23:09 UTC 2017


Signed-off-by: Oleksandr Natalenko <oleksandr at redhat.com>
---
 memory.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/memory.c b/memory.c
index abf3982..60106d2 100644
--- a/memory.c
+++ b/memory.c
@@ -17003,8 +17003,8 @@ valid_section(ulong addr)
 
 	if ((mem_section = read_mem_section(addr)))
         	return (ULONG(mem_section + 
-			OFFSET(mem_section_section_mem_map)) && 
-			SECTION_MARKED_PRESENT);
+			OFFSET(mem_section_section_mem_map))
+			& SECTION_MARKED_PRESENT);
 	return 0;
 }
 
@@ -17016,7 +17016,7 @@ section_has_mem_map(ulong addr)
 	if ((mem_section = read_mem_section(addr)))
 		return (ULONG(mem_section + 
 			OFFSET(mem_section_section_mem_map))
-			&& SECTION_HAS_MEM_MAP);
+			& SECTION_HAS_MEM_MAP);
 	return 0;
 }
 
-- 
2.14.3




More information about the Crash-utility mailing list