From: Arjan van de Ven Date: Thu, 1 Oct 2009 22:48:40 +0000 (-0700) Subject: ACPI: clean up video.c boundary checks and types X-Git-Tag: v2.6.32-rc7~65^2~1^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a2b11cafb1b14bacfc65a20966da5ba3a863e1;p=pandora-kernel.git ACPI: clean up video.c boundary checks and types proc.c and video.c are a bit sloppy around types and style, confusing gcc for a new feature that'll be in 2.6.33 and will cause a warning on the current code. This patch changes if (foo + 1 > sizeof bar) into if (foo >= sizeof(bar)) which is more kernel-style. it also changes a variable in proc.c to unsigned; it gets assigned a value from an unsigned type, and is then only compared for > not for negative, so using unsigned is just outright the right type Signed-off-by: Arjan van de Ven Signed-off-by: Len Brown --- Reading git-diff-tree failed