speed = (speed < 0) ? 0 : ((speed > I8K_FAN_MAX) ? I8K_FAN_MAX : speed); 
speed = (speed < 0) ? 0 : ((speed > I8K_FAN_MAX) ? I8K_FAN_MAX : speed); 
static int i8k_set_fan(int fan, int speed){    SMMRegisters regs = { 0, 0, 0, 0, 0, 0 };    int rc;    speed = (speed < 0) ? 0 : ((speed > I8K_FAN_MAX) ? I8K_FAN_MAX : speed);    regs.eax = I8K_SMM_SET_FAN;    regs.ebx = (fan & 0xff) | (speed << 8);    if ((rc=i8k_smm(&regs)) < 0) {	return rc;    }    return (i8k_get_fan_status(fan));}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/dec63ec32ea486ab915138e8790084c22a3f7bf6/i8k.c/clean/drivers/char/i8k.c