1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00

bluetooth: Remove set but unused variable.

Reported by:	GCC
This commit is contained in:
John Baldwin 2023-06-20 09:28:59 -07:00
parent 5f0bd29180
commit 9d7c4486e2
2 changed files with 0 additions and 4 deletions

View File

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

View File

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