aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sdhci/sdhci_xenon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sdhci/sdhci_xenon.c b/sys/dev/sdhci/sdhci_xenon.c
index b6f7513245eb..7ed94907e478 100644
--- a/sys/dev/sdhci/sdhci_xenon.c
+++ b/sys/dev/sdhci/sdhci_xenon.c
@@ -183,7 +183,7 @@ sdhci_xenon_get_ro(device_t bus, device_t dev)
struct sdhci_xenon_softc *sc = device_get_softc(bus);
return (sdhci_generic_get_ro(bus, dev) ^
- (sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
+ !!(sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
}
static bool