OSDN Git Service

staging: rtl8723bs: use kmemdup for allocation and copy
authorDafna Hirschfeld <dafna3@gmail.com>
Tue, 27 Feb 2018 21:44:27 +0000 (23:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2018 16:21:49 +0000 (17:21 +0100)
commit2d42ac21efe4a191f992ffd2d004b0a4e052102e
treec9a8809e4db41ed9b234c42a98dc0f6f9b7fc10e
parentbafc56491bf3ec090994fc3a2451ec3c68d5bc1b
staging: rtl8723bs: use kmemdup for allocation and copy

Use kmemdup instead of kzalloc and memcpy to simplify the code.
Issue found with coccicheck.

Signed-off-by: Dafna Hirschfeld <dafna3@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c