diff mbox series

[BlueZ] shared/asha: Fix bad parens in a comparison

Message ID 20250509205341.557936-1-arun@asymptotic.io
State New
Headers show
Series [BlueZ] shared/asha: Fix bad parens in a comparison | expand

Commit Message

Arun Raghavan May 9, 2025, 8:53 p.m. UTC
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 mbox series

Patch

diff --git a/src/shared/asha.c b/src/shared/asha.c
index 3e1673488..69906fcc5 100644
--- a/src/shared/asha.c
+++ b/src/shared/asha.c
@@ -348,7 +348,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) {