git: cfe94aa8c117 - main - agp: plug a set-but-not-unused var in agp_intel_gtt_map_memory
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Nov 2021 16:25:57 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=cfe94aa8c117f3b8fa6cc69ed5a5093ea3cb959f commit cfe94aa8c117f3b8fa6cc69ed5a5093ea3cb959f Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2021-11-24 16:20:39 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2021-11-24 16:25:50 +0000 agp: plug a set-but-not-unused var in agp_intel_gtt_map_memory Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/dev/agp/agp_i810.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c index 9bca2f556a60..50749863a5f5 100644 --- a/sys/dev/agp/agp_i810.c +++ b/sys/dev/agp/agp_i810.c @@ -2202,7 +2202,9 @@ int agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries, struct sglist **sg_list) { +#if 0 struct agp_i810_softc *sc; +#endif struct sglist *sg; int i; #if 0 @@ -2212,7 +2214,9 @@ agp_intel_gtt_map_memory(device_t dev, vm_page_t *pages, u_int num_entries, if (*sg_list != NULL) return (0); +#if 0 sc = device_get_softc(dev); +#endif sg = sglist_alloc(num_entries, M_WAITOK /* XXXKIB */); for (i = 0; i < num_entries; i++) { sg->sg_segs[i].ss_paddr = VM_PAGE_TO_PHYS(pages[i]);