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:
parent
5f0bd29180
commit
9d7c4486e2
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user