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
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
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