sparc: use memdup_user_nul in sun4m LED driver
authorGeliang Tang <geliangtang@gmail.com>
Sat, 6 May 2017 15:40:20 +0000 (23:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 May 2017 19:16:25 +0000 (12:16 -0700)
commitaed74ea0a09d2e60e4b3fe45caf30f6365b6c9f3
tree94adc10e5fff05f03d65eafc4874b96fd30f83de
parent8c64415cc1f5794c02b95dee10084fa8a4ee3cfe
sparc: use memdup_user_nul in sun4m LED driver

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

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/led.c