Files
linux-apfs/drivers/acpi
Arjan van de Ven 52a2b11caf 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 <arjan@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-10-28 11:49:37 -04:00
..
2009-10-06 13:55:56 -04:00
2009-09-19 01:56:17 -04:00
2009-09-25 14:24:30 -04:00
2009-09-19 01:45:22 -04:00
2009-10-03 01:08:28 -04:00
2009-09-19 01:45:22 -04:00
2009-09-27 03:12:13 -04:00
2009-06-17 23:32:23 -04:00
2009-09-19 00:37:13 -04:00
2009-10-02 11:03:12 -04:00
2009-09-19 00:06:59 -04:00