diff options
author | Zhang Rui <rui.zhang@intel.com> | 2009-08-06 18:57:54 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-08-27 14:09:30 -0400 |
commit | 3b5e634103a5471d74e55d774e53db3df5c7b650 (patch) | |
tree | 2d20c2ad39ca8c863c7b0d266ab0db4209dce75d /drivers/acpi | |
parent | 1e23502cc57cef33455ac7cb9111e3c6d991a894 (diff) |
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/acpi')
-rw-r--r-- | drivers/acpi/video.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 8851315ce858..a0cd0c7ee9e2 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) | |||
934 | { | 934 | { |
935 | acpi_handle h_dummy1; | 935 | acpi_handle h_dummy1; |
936 | 936 | ||
937 | |||
938 | memset(&device->cap, 0, sizeof(device->cap)); | ||
939 | |||
940 | if (ACPI_SUCCESS(acpi_get_handle(device->dev->handle, "_ADR", &h_dummy1))) { | 937 | if (ACPI_SUCCESS(acpi_get_handle(device->dev->handle, "_ADR", &h_dummy1))) { |
941 | device->cap._ADR = 1; | 938 | device->cap._ADR = 1; |
942 | } | 939 | } |
@@ -1039,7 +1036,6 @@ static void acpi_video_bus_find_cap(struct acpi_video_bus *video) | |||
1039 | { | 1036 | { |
1040 | acpi_handle h_dummy1; | 1037 | acpi_handle h_dummy1; |
1041 | 1038 | ||
1042 | memset(&video->cap, 0, sizeof(video->cap)); | ||
1043 | if (ACPI_SUCCESS(acpi_get_handle(video->device->handle, "_DOS", &h_dummy1))) { | 1039 | if (ACPI_SUCCESS(acpi_get_handle(video->device->handle, "_DOS", &h_dummy1))) { |
1044 | video->cap._DOS = 1; | 1040 | video->cap._DOS = 1; |
1045 | } | 1041 | } |