Re: [PATCH v2] sensors: Use defines for array sizes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon,  9 Jan 2012 06:40:45 -0800, Guenter Roeck wrote:
> Use defines for array sizes. For alarm attributes, take into account that both
> the generic alarm flag as well as individual alarm attributes may be provided
> by a driver (even though that should not be the case).
> 
> Remove overflow checks from get_sensor_limit_data(), as overflows should
> no longer happen.
> 
> Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
> ---
> v2: Fix MAX() macro

D'oh, I'm slow, sorry. I should have reviewed than one instead of v1.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux