xtensa: Fix comparison result for up_fpucmp function
@@ -54,6 +54,6 @@ bool up_fpucmp(const void *saveregs1, const void *saveregs2)
const uint32_t *regs2 = saveregs2;
return memcmp(&regs1[XCPTCONTEXT_REGS], &regs2[XCPTCONTEXT_REGS],
- XTENSA_CP_SA_SIZE);
+ XTENSA_CP_SA_SIZE) == 0;
}
#endif /* CONFIG_ARCH_FPU */
