diff mbox

[V2,1/2] mmc: Add helper function to check if a card is removable

Message ID 20100927150132.GA11578@void.printf.net (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Chris Ball Sept. 27, 2010, 3:01 p.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h
index 23a4864..2e0fe62 100644
--- a/include/linux/mmc/host.h
+++ b/include/linux/mmc/host.h
@@ -272,7 +272,7 @@  extern int mmc_assume_removable;
 
 static inline int mmc_card_is_removable(struct mmc_host *host)
 {
-	return (!(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable);
+	return !(host->caps & MMC_CAP_NONREMOVABLE) && mmc_assume_removable;
 }
 
 #endif