git: 9d7c4486e29b - main - bluetooth: Remove set but unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 20 Jun 2023 16:29:24 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9d7c4486e29b13ba0df0a56ce016cdc169b98550 commit 9d7c4486e29b13ba0df0a56ce016cdc169b98550 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-20 16:28:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-20 16:28:59 +0000 bluetooth: Remove set but unused variable. Reported by: GCC --- usr.sbin/bluetooth/ath3kfw/ath3k_fw.c | 2 -- usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c b/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c index 2c480044c2d7..4aa1add64718 100644 --- a/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c +++ b/usr.sbin/bluetooth/ath3kfw/ath3k_fw.c @@ -49,7 +49,6 @@ ath3k_fw_read(struct ath3k_firmware *fw, const char *fwname) struct stat sb; unsigned char *buf; ssize_t r; - int i; fd = open(fwname, O_RDONLY); if (fd < 0) { @@ -70,7 +69,6 @@ ath3k_fw_read(struct ath3k_firmware *fw, const char *fwname) return (0); } - i = 0; /* XXX handle partial reads */ r = read(fd, buf, sb.st_size); if (r < 0) { diff --git a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c index 5fe270c7f059..cdb84b44b0f4 100644 --- a/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c +++ b/usr.sbin/bluetooth/iwmbtfw/iwmbt_fw.c @@ -50,7 +50,6 @@ iwmbt_fw_read(struct iwmbt_firmware *fw, const char *fwname) struct stat sb; unsigned char *buf; ssize_t r; - int i; fd = open(fwname, O_RDONLY); if (fd < 0) { @@ -71,7 +70,6 @@ iwmbt_fw_read(struct iwmbt_firmware *fw, const char *fwname) return (0); } - i = 0; /* XXX handle partial reads */ r = read(fd, buf, sb.st_size); if (r < 0) {