diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 02:33:58 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2010-07-02 02:33:58 +0000 |
commit | 364840df3893a5f720df05ee307b996c62195a07 (patch) | |
tree | b4282360868e831f04115301ea248eeff5d87c95 /sys | |
parent | be38e5e8b8cef7e788be53edcf96858d8d8d6135 (diff) |
braces define scope, not indentation. found hunting uninit bugs. ok oga
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/agp_i810.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index 1c1083dbedd..0a27e146f05 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp_i810.c,v 1.64 2010/06/30 09:17:04 oga Exp $ */ +/* $OpenBSD: agp_i810.c,v 1.65 2010/07/02 02:33:57 tedu Exp $ */ /*- * Copyright (c) 2000 Doug Rabson @@ -494,11 +494,12 @@ agp_i810_attach(struct device *parent, struct device *self, void *aux) return; out: - if (isc->gatt) + if (isc->gatt) { if (isc->gatt->ag_size != 0) - agp_free_dmamem(pa->pa_dmat, gatt->ag_size, - gatt->ag_dmamap, &gatt->ag_dmaseg); + agp_free_dmamem(pa->pa_dmat, isc->gatt->ag_size, + isc->gatt->ag_dmamap, &isc->gatt->ag_dmaseg); free(isc->gatt, M_AGP); + } if (isc->gtt_map != NULL) vga_pci_bar_unmap(isc->gtt_map); if (isc->map != NULL) |