broken_apm_power in dmi_scan.c - no return value

From: Alex Riesen (a.riesen@traian.de)
Date: Tue Apr 24 2001 - 03:19:15 EST


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/



This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:10 EST