Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>: On Thu, 6 Mar 2025 11:00:03 -0500 you wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> > > This fixes the following scan-build warnings: > > emulator/btdev.c:1126:10: warning: Although the value stored to 'conn' is used in the enclosing expression, the value is never actually read from 'conn' [deadcode.DeadStores] > 1126 | while ((conn = queue_find(dev->conns, match_handle, > | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1127 | UINT_TO_PTR(handle)))) > | ~~~~~~~~~~~~~~~~~~~~ > emulator/btdev.c:1413:24: warning: Access to field 'link' results in a dereference of a null pointer (loaded from variable 'conn') [core.NullDereference] > 1413 | pending_conn_del(dev, conn->link->dev); > | ^~~~~~~~~~ > emulator/btdev.c:1535:13: warning: Access to field 'dev' results in a dereference of a null pointer (loaded from variable 'conn') [core.NullDereference] > 1535 | send_event(conn->dev, BT_HCI_EVT_AUTH_COMPLETE, &ev, sizeof(ev)); > | ^~~~~~~~~ > > [...] Here is the summary with links: - [BlueZ,v1] btdev: Fix scan-build warnings https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=04cd5d2a97c8 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html