Cleanup: combine ifdefs for arm thumb2
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Dec 2023 02:01:51 +0000 (21:01 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 Jan 2024 17:06:43 +0000 (12:06 -0500)
Those two ifdefs can be combined into a single preprocessor conditional
with a &&.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Icc2c11f1fd033af475cf69f14140dd710417cf10

include/wrapper/kallsyms.h

index 0aac5a2d64ca28c19bc9abf2778413c4b04d370f..fe2daefbf108659b9bb41c88d00536fa23631dce 100644 (file)
@@ -54,11 +54,9 @@ unsigned long kallsyms_lookup_funcptr(const char *name)
        unsigned long addr;
 
        addr = wrapper_kallsyms_lookup_name(name);
-#ifdef CONFIG_ARM
-#ifdef CONFIG_THUMB2_KERNEL
+#if defined(CONFIG_ARM) && defined(CONFIG_THUMB2_KERNEL)
        if (addr)
                addr |= 1; /* set bit 0 in address for thumb mode */
-#endif
 #endif
        return addr;
 }
This page took 0.028028 seconds and 4 git commands to generate.