broken_apm_power in dmi_scan.c - no return value

Alex Riesen (a.riesen@traian.de)
Tue, 24 Apr 2001 10:19:15 +0200


Hi, dear lkml,

The mentioned function doesn't return any value, but the calling
code (dmi_check_black_list) depend on it:

static __init int broken_apm_power(struct dmi_blacklist *d)
{
apm_info.get_power_status_broken = 1;
printk(KERN_WARNING "BIOS strings suggest APM bugs, disabling power status reporting.\n");
return 0; /* continue scan */
}

In dmi_check_blacklist:

if(d->callback(d)) /* callback is a pointer on a function, like broken_apm_power */
return;

Alex Riesen

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/