spi: spidev: use memdup_user
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:42:17 +0000 (23:42 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 14 May 2017 09:38:05 +0000 (18:38 +0900)
commitf7929436a286ca31f0365a7013de968017f76818
tree733b28a7545d4eeca008057b5ed2fb2b1faeb34f
parent76bf569466c68fb3705a3b38cdee026df9861101
spi: spidev: use memdup_user

Use memdup_user() helper instead of open-coding to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c