bcm2835_sdhci: fix non-INVARIANTS build

sc is now only used to make sure we're not re-entering the data handling
path erroneously.

Reported by:	Mark Millard
This commit is contained in:
Kyle Evans 2019-11-23 13:39:47 +00:00
parent 0227a14997
commit 8922c2ca03
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355031

View File

@ -718,7 +718,9 @@ bcm_sdhci_start_dma(struct sdhci_slot *slot)
static int
bcm_sdhci_will_handle_transfer(device_t dev, struct sdhci_slot *slot)
{
#ifdef INVARIANTS
struct bcm_sdhci_softc *sc = device_get_softc(slot->bus);
#endif
/*
* This indicates that we somehow let a data interrupt slip by into the