aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/adv_pci.c
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
committerArchie Cobbs <archie@FreeBSD.org>1998-12-07 21:58:50 +0000
commitf1d19042b082d95f07a0027e596ba2405aa8a9a5 (patch)
treeb856be4db5efb04d68d01039a157119ac8613b9f /sys/pci/adv_pci.c
parentf769cca5eb9fed523269d85eefe74037ff7bd1b5 (diff)
downloadsrc-f1d19042b082d95f07a0027e596ba2405aa8a9a5.tar.gz
src-f1d19042b082d95f07a0027e596ba2405aa8a9a5.zip
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static
and local variables, goto labels, and functions declared but not defined.
Notes
Notes: svn path=/head/; revision=41591
Diffstat (limited to 'sys/pci/adv_pci.c')
-rw-r--r--sys/pci/adv_pci.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/pci/adv_pci.c b/sys/pci/adv_pci.c
index 2f9e4e1eb712..593b30579fe4 100644
--- a/sys/pci/adv_pci.c
+++ b/sys/pci/adv_pci.c
@@ -47,7 +47,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: adv_pci.c,v 1.1 1998/09/15 07:03:43 gibbs Exp $
*/
#include <pci.h>
@@ -122,7 +122,6 @@ static void
advpciattach(pcici_t config_id, int unit)
{
u_int16_t io_port;
- u_int16_t config_msw;
struct adv_softc *adv;
u_int32_t id;
u_int32_t command;
@@ -252,9 +251,13 @@ advpciattach(pcici_t config_id, int unit)
adv->max_dma_addr = ADV_PCI_MAX_DMA_ADDR;
#if CC_DISABLE_PCI_PARITY_INT
- config_msw = ADV_INW(adv, ADV_CONFIG_MSW);
- config_msw &= 0xFFC0;
- ADV_OUTW(adv, ADV_CONFIG_MSW, config_msw);
+ {
+ u_int16_t config_msw;
+
+ config_msw = ADV_INW(adv, ADV_CONFIG_MSW);
+ config_msw &= 0xFFC0;
+ ADV_OUTW(adv, ADV_CONFIG_MSW, config_msw);
+ }
#endif
if (id == PCI_DEVICE_ID_ADVANSYS_1200A