* [PATCH] src: Remove dead assignments in batocomp
@ 2026-06-21 18:15 Arnav Kapoor
2026-06-21 19:56 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Arnav Kapoor @ 2026-06-21 18:15 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Arnav Kapoor
The return values of udev_hwdb_unref() and udev_unref()
are assigned to local variables that are never read again.
Remove the unnecessary assignments.
Found by scan-build.
---
src/oui.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/oui.c b/src/oui.c
index e20297b93..4d9c3c3e7 100644
--- a/src/oui.c
+++ b/src/oui.c
@@ -47,10 +47,10 @@ char *batocomp(const bdaddr_t *ba)
}
}
- hwdb = udev_hwdb_unref(hwdb);
+ udev_hwdb_unref(hwdb);
done:
- udev = udev_unref(udev);
+ udev_unref(udev);
return comp;
}
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-21 19:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-21 18:15 [PATCH] src: Remove dead assignments in batocomp Arnav Kapoor
2026-06-21 19:56 ` bluez.test.bot
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.