From 5a112d14e42369e97d3c415a3a08ee62727da8db Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 9 May 2025 16:53:41 -0400 Subject: [PATCH] shared/asha: Fix bad parens in a comparison The last parameter to the memcmp was incorrectly the result of the comparison rather than the sizeof()'s value. --- src/shared/asha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/asha.c b/src/shared/asha.c index 33bec40da..c9277e096 100644 --- a/src/shared/asha.c +++ b/src/shared/asha.c @@ -345,7 +345,7 @@ static void check_probe_done(struct bt_asha *asha) /* Once we have ROPs & PSM, we should be good to go */ if (asha->psm == 0 || memcmp(asha->hisyncid, zeroes, - sizeof(zeroes) == 0)) + sizeof(zeroes)) == 0) return; if (asha->attach_cb) { -- 2.47.3