aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhang Rui <rui.zhang@intel.com>2009-08-06 15:57:54 -0700
committerLen Brown <len.brown@intel.com>2009-08-27 14:09:30 -0400
commit3b5e634103a5471d74e55d774e53db3df5c7b650 (patch)
tree2d20c2ad39ca8c863c7b0d266ab0db4209dce75d /drivers
parent1e23502cc57cef33455ac7cb9111e3c6d991a894 (diff)
downloadkernel_samsung_crespo-3b5e634103a5471d74e55d774e53db3df5c7b650.zip
kernel_samsung_crespo-3b5e634103a5471d74e55d774e53db3df5c7b650.tar.gz
kernel_samsung_crespo-3b5e634103a5471d74e55d774e53db3df5c7b650.tar.bz2
ACPI: video: remove unneeded memsets
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/video.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index 8851315..a0cd0c7 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -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;
}