samples/kobject: Use kstrtoint instead of sscanf
authorRastislav Barlik <barlik@zoho.com>
Wed, 17 Dec 2014 20:14:48 +0000 (21:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2015 12:40:31 +0000 (13:40 +0100)
commit5fd637e7a75fb2a4c0b62683c08dae959160fedf
tree14939b0698c41cb523f7ed8d64d6ec0a66c21531
parent1c34203a1496d1849ba978021b878b3447d433c8
samples/kobject: Use kstrtoint instead of sscanf

Use kstrtoint function instead of sscanf and check for return values.

Signed-off-by: Rastislav Barlik <barlik@zoho.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
samples/kobject/kobject-example.c
samples/kobject/kset-example.c