]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ACPI: video: remove unneeded memsets
authorZhang Rui <rui.zhang@intel.com>
Thu, 6 Aug 2009 22:57:54 +0000 (15:57 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 27 Aug 2009 18:09:30 +0000 (14:09 -0400)
device->cap and video->cap are zeroed initially so we don't need to clear
them again.

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c

index 8851315ce858a2e2eb1e4ffd2d2b6b695fa8bfb8..a0cd0c7ee9e29bd2d0149ae419ec34ad16de79cc 100644 (file)
@@ -934,9 +934,6 @@ static void acpi_video_device_find_cap(struct acpi_video_device *device)
 {
        acpi_handle h_dummy1;
 
-
-       memset(&device->cap, 0, sizeof(device->cap));
-
        if (ACPI_SUCCESS(acpi_get_handle(device->dev->handle, "_ADR", &h_dummy1))) {
                device->cap._ADR = 1;
        }
@@ -1039,7 +1036,6 @@ static void acpi_video_bus_find_cap(struct acpi_video_bus *video)
 {
        acpi_handle h_dummy1;
 
-       memset(&video->cap, 0, sizeof(video->cap));
        if (ACPI_SUCCESS(acpi_get_handle(video->device->handle, "_DOS", &h_dummy1))) {
                video->cap._DOS = 1;
        }