bxe: remove another warning gz_strm never worked, but they used the buffers. So remove the thing that never worked, leave all else alone. These device compression things almost never work, so it's no surprise. Signed-off-by: Ron Minnich <rminnich@google.com>
diff --git a/kern/drivers/net/bxe/bxe.c b/kern/drivers/net/bxe/bxe.c index 31f9bec..4a01caf 100644 --- a/kern/drivers/net/bxe/bxe.c +++ b/kern/drivers/net/bxe/bxe.c
@@ -15072,27 +15072,9 @@ return (1); } -#warning "what the hell is gz_strm" -#if 0 + // The compress/decompress shit never worked. But they use the buffer. */ sc->gz_buf = (void *)sc->gz_buf_dma.vaddr; - if ((sc->gz_strm = - kmalloc(sizeof(*sc->gz_strm), /*M_DEVBUF,*/ M_NOWAIT)) == NULL) { - /* XXX */ - bxe_dma_free(sc, &sc->gz_buf_dma); - sc->gz_buf = NULL; - bxe_dma_free(sc, &sc->spq_dma); - sc->spq = NULL; - bxe_dma_free(sc, &sc->sp_dma); - sc->sp = NULL; - bxe_dma_free(sc, &sc->eq_dma); - sc->eq = NULL; - bxe_dma_free(sc, &sc->def_sb_dma); - sc->def_sb = NULL; - bus_dma_tag_destroy(sc->parent_dma_tag); - return (1); - } -#endif /*************/ /* FASTPATHS */ /*************/