From: Arnav Kapoor <kapoorarnav43@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Arnav Kapoor <kapoorarnav43@gmail.com>
Subject: [PATCH] src: Remove dead assignments in batocomp
Date: Sun, 21 Jun 2026 23:45:34 +0530 [thread overview]
Message-ID: <20260621181534.92005-1-kapoorarnav43@gmail.com> (raw)
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
next reply other threads:[~2026-06-21 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-21 18:15 Arnav Kapoor [this message]
2026-06-21 19:56 ` src: Remove dead assignments in batocomp bluez.test.bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260621181534.92005-1-kapoorarnav43@gmail.com \
--to=kapoorarnav43@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox