From: Jean Delvare Date: Mon, 09 Jan 2012 17:02:27 +0000 Subject: Re: [lm-sensors] [PATCH v2] sensors: Use defines for array sizes Message-Id: <20120109180227.461eda81@endymion.delvare> List-Id: References: <1326120045-2370-1-git-send-email-linux@roeck-us.net> In-Reply-To: <1326120045-2370-1-git-send-email-linux@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org 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 > --- > 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@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors