WMI: simplify handling of returned WMI blocks in parse_wdg()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 26 Aug 2010 07:15:09 +0000 (00:15 -0700)
committerMatthew Garrett <mjg@redhat.com>
Thu, 21 Oct 2010 13:36:47 +0000 (09:36 -0400)
commit378306628e26d2945a1ed245f177a693c314e68d
treec32dbd4988e1e51bbbff88fa8e20221492b34c06
parent3d2c63eb5e0abfd06b19928c8ed43020b3451a3c
WMI: simplify handling of returned WMI blocks in parse_wdg()

There is no reason why we allocate memory and copy data into an
intermediate buffer, it is not like we are working with data coming
from userspace.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/wmi.c