git: d62a6ff38bd5 - main - if_upgt: Remove unused variables.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:56 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d62a6ff38bd5d3f169700d0e3d07bc30f5083274 commit d62a6ff38bd5d3f169700d0e3d07bc30f5083274 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-08 00:01:29 +0000 if_upgt: Remove unused variables. --- sys/dev/usb/wlan/if_upgt.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/usb/wlan/if_upgt.c b/sys/dev/usb/wlan/if_upgt.c index 26c57d7944f5..475f23d4537f 100644 --- a/sys/dev/usb/wlan/if_upgt.c +++ b/sys/dev/usb/wlan/if_upgt.c @@ -1153,17 +1153,15 @@ upgt_eeprom_parse_freq3(struct upgt_softc *sc, uint8_t *data, int len) struct upgt_lmac_freq3 *freq3; int i; int elements; - int flags; unsigned channel; freq3_header = (struct upgt_eeprom_freq3_header *)data; freq3 = (struct upgt_lmac_freq3 *)(freq3_header + 1); - flags = freq3_header->flags; elements = freq3_header->elements; DPRINTF(sc, UPGT_DEBUG_FW, "flags=0x%02x elements=%d\n", - flags, elements); + freq3_header->flags, elements); if (elements >= (int)(UPGT_EEPROM_SIZE / sizeof(freq3[0]))) return; @@ -1190,12 +1188,10 @@ upgt_eeprom_parse_freq4(struct upgt_softc *sc, uint8_t *data, int len) int j; int elements; int settings; - int flags; unsigned channel; freq4_header = (struct upgt_eeprom_freq4_header *)data; freq4_1 = (struct upgt_eeprom_freq4_1 *)(freq4_header + 1); - flags = freq4_header->flags; elements = freq4_header->elements; settings = freq4_header->settings; @@ -1203,7 +1199,7 @@ upgt_eeprom_parse_freq4(struct upgt_softc *sc, uint8_t *data, int len) sc->sc_eeprom_freq6_settings = freq4_header->settings; DPRINTF(sc, UPGT_DEBUG_FW, "flags=0x%02x elements=%d settings=%d\n", - flags, elements, settings); + freq4_header->flags, elements, settings); if (elements >= (int)(UPGT_EEPROM_SIZE / sizeof(freq4_1[0]))) return;