Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/da2c9eadcc2e
branches: trunk
changeset: 789964:da2c9eadcc2e
user: martin <martin%NetBSD.org@localhost>
date: Sat Sep 14 12:44:17 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/pci/isp_pci.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r cb54859d12a7 -r da2c9eadcc2e sys/dev/pci/isp_pci.c
--- a/sys/dev/pci/isp_pci.c Sat Sep 14 12:43:08 2013 +0000
+++ b/sys/dev/pci/isp_pci.c Sat Sep 14 12:44:17 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: isp_pci.c,v 1.115 2011/05/24 18:17:24 joerg Exp $ */
+/* $NetBSD: isp_pci.c,v 1.116 2013/09/14 12:44:17 martin Exp $ */
/*
* Copyright (C) 1997, 1998, 1999 National Aeronautics & Space Administration
* All rights reserved.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: isp_pci.c,v 1.115 2011/05/24 18:17:24 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: isp_pci.c,v 1.116 2013/09/14 12:44:17 martin Exp $");
#include <dev/ic/isp_netbsd.h>
#include <dev/pci/pcireg.h>
@@ -1036,14 +1036,13 @@
{
struct isp_pcisoftc *pcs = (struct isp_pcisoftc *) isp;
int block = regoff & _BLK_REG_MASK;
- volatile int junk;
switch (block) {
case BIU_BLOCK:
break;
case MBOX_BLOCK:
BXW2(pcs, IspVirt2Off(pcs, regoff), val);
- junk = BXR2(pcs, IspVirt2Off(pcs, regoff));
+ (void)BXR2(pcs, IspVirt2Off(pcs, regoff));
return;
case SXP_BLOCK:
isp_prt(isp, ISP_LOGWARN, "SXP_BLOCK write at 0x%x", regoff);
@@ -1079,7 +1078,7 @@
case BIU2400_GPIOE:
case BIU2400_HSEMA:
BXW4(pcs, IspVirt2Off(pcs, regoff), val);
- junk = BXR4(pcs, IspVirt2Off(pcs, regoff));
+ (void)BXR4(pcs, IspVirt2Off(pcs, regoff));
break;
default:
isp_prt(isp, ISP_LOGERR,
Home |
Main Index |
Thread Index |
Old Index