Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 2021 22:14:52 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: cc557faf869a - main - Fix "set but not used" in cardbus
Message-ID:  <202112052214.1B5MEqV1011725@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by scottl:

URL: https://cgit.FreeBSD.org/src/commit/?id=cc557faf869a59b97f775284749648b57948cef2

commit cc557faf869a59b97f775284749648b57948cef2
Author:     Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-12-05 22:14:35 +0000
Commit:     Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-12-05 22:14:35 +0000

    Fix "set but not used" in cardbus
    
    Sponsored by: Rubicon Communications, LLC ("Netgate")
---
 sys/dev/cardbus/cardbus.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c
index 50a21dfc0b82..f13e0ac4675c 100644
--- a/sys/dev/cardbus/cardbus.c
+++ b/sys/dev/cardbus/cardbus.c
@@ -317,10 +317,8 @@ static int
 cardbus_read_ivar(device_t cbdev, device_t child, int which, uintptr_t *result)
 {
 	struct cardbus_devinfo *dinfo;
-	pcicfgregs *cfg;
 
 	dinfo = device_get_ivars(child);
-	cfg = &dinfo->pci.cfg;
 
 	switch (which) {
 	case PCI_IVAR_ETHADDR:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112052214.1B5MEqV1011725>