* [patch 7/9] drivers/acpi/video.c: remove unneeded memsets
@ 2009-08-06 22:57 akpm
2009-08-27 18:09 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-08-06 22:57 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, akpm, rui.zhang
From: Zhang Rui <rui.zhang@intel.com>
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>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/acpi/video.c | 4 ----
1 file changed, 4 deletions(-)
diff -puN drivers/acpi/video.c~acpi-dont-free-non-existant-backlight-in-acpi-video-module drivers/acpi/video.c
--- a/drivers/acpi/video.c~acpi-dont-free-non-existant-backlight-in-acpi-video-module
+++ a/drivers/acpi/video.c
@@ -934,9 +934,6 @@ static void acpi_video_device_find_cap(s
{
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(stru
{
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;
}
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 7/9] drivers/acpi/video.c: remove unneeded memsets
2009-08-06 22:57 [patch 7/9] drivers/acpi/video.c: remove unneeded memsets akpm
@ 2009-08-27 18:09 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2009-08-27 18:09 UTC (permalink / raw)
To: akpm; +Cc: linux-acpi, rui.zhang
applied for 2.6.32
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-27 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 22:57 [patch 7/9] drivers/acpi/video.c: remove unneeded memsets akpm
2009-08-27 18:09 ` Len Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).