mmc:: Undo my conversion of (bool) to !!.

The need for !! over (bool) pre-dates gcc 4.2, so go with the patch
as-submitted because the kernel tends to prefer that.

Suggested by:		emaste@
Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2021-06-03 11:26:57 -06:00
parent 0e6549c874
commit ef65f7bdf2

View File

@ -407,7 +407,7 @@ mmc_fdt_gpio_get_present(struct mmc_fdt_helper *helper)
gpio_pin_is_active(helper->cd_pin, &pinstate);
return (pinstate ^ !!(helper->props & MMC_PROP_CD_INVERTED));
return (pinstate ^ (bool)(helper->props & MMC_PROP_CD_INVERTED));
}
bool
@ -423,7 +423,7 @@ mmc_fdt_gpio_get_readonly(struct mmc_fdt_helper *helper)
gpio_pin_is_active(helper->wp_pin, &pinstate);
return (pinstate ^ !!(helper->props & MMC_PROP_WP_INVERTED));
return (pinstate ^ (bool)(helper->props & MMC_PROP_WP_INVERTED));
}
void