w1: ds2490: use kmemdup rather than duplicating its implementation
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Feb 2017 15:45:42 +0000 (15:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Feb 2017 14:32:53 +0000 (15:32 +0100)
commit45003a1e251a9777a55ab46bc49f6ddf747f7f94
tree1659fc2c43e3bdc557b416ea9c4957357a40cecf
parent425902f5c8e3034b2d9d7a714289d8d579c733b2
w1: ds2490: use kmemdup rather than duplicating its implementation

Use kmemdup rather than duplicating its implementation.

Generated by: scripts/coccinelle/api/memdup.cocci

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/ds2490.c