HID: hid-sensor-hub: change kmalloc + memcpy by kmemdup
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Aug 2013 08:07:11 +0000 (11:07 +0300)
committerJiri Kosina <jkosina@suse.cz>
Wed, 4 Sep 2013 10:19:13 +0000 (12:19 +0200)
commit7b0692f1c60a9551f8ad5fe706b79a23720a196c
tree54d194c4b13eb79494a252ffb432804a52452271
parent905cc1991aa839fc4c9030f505966ab34637379a
HID: hid-sensor-hub: change kmalloc + memcpy by kmemdup

The patch substitutes kmemdup for kmalloc followed by memcpy.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sensor-hub.c