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:
parent
0227a14997
commit
8922c2ca03
@ -718,7 +718,9 @@ bcm_sdhci_start_dma(struct sdhci_slot *slot)
|
|||||||
static int
|
static int
|
||||||
bcm_sdhci_will_handle_transfer(device_t dev, struct sdhci_slot *slot)
|
bcm_sdhci_will_handle_transfer(device_t dev, struct sdhci_slot *slot)
|
||||||
{
|
{
|
||||||
|
#ifdef INVARIANTS
|
||||||
struct bcm_sdhci_softc *sc = device_get_softc(slot->bus);
|
struct bcm_sdhci_softc *sc = device_get_softc(slot->bus);
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This indicates that we somehow let a data interrupt slip by into the
|
* This indicates that we somehow let a data interrupt slip by into the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user