On 02/24/2012 08:52 AM, Rafał Miłecki wrote:
+ srom_control = bcma_read32(bus->drv_cc.core,
> + BCMA_CC_SROM_CONTROL);
> + return !!(srom_control& BCMA_CC_SROM_CONTROL_PRESENT);
Does any compiler complain on returning sth like 0xF as a bool?
The compiler probably will not complain, but the caller could have
following:
if (bcma_sprom_ext_available(bus) == true) {
return;
}
BUG();
I guess you would see the BUG show up in your log with the function
returning 0xF.
Gr. AvS
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html