All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] shared/asha: Fix bad parens in a comparison
@ 2025-05-09 20:53 Arun Raghavan
  2025-05-09 22:15 ` [BlueZ] " bluez.test.bot
  2025-05-12 16:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Arun Raghavan @ 2025-05-09 20:53 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Arun Raghavan, sanchayan

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 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) {
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-12 16:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 20:53 [PATCH BlueZ] shared/asha: Fix bad parens in a comparison Arun Raghavan
2025-05-09 22:15 ` [BlueZ] " bluez.test.bot
2025-05-12 16:50 ` [PATCH BlueZ] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.