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

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

 



On Mon, 2012-01-09 at 12:02 -0500, Jean Delvare wrote:
> 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.
> 
Me slow too. That MAX() bug was really a bad one. But I agree, it isn't
needed to start with.

Guenter



_______________________________________________
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