[PATCH] staging: speakup: Change simple_strtoul usage to kstrtoul

2016-02-19 Thread Joseph Bisch
This fixes the checkpatch.pl warning: WARNING: simple_strtoul is obsolete, use kstrtoul instead Signed-off-by: Joseph Bisch --- drivers/staging/speakup/kobjects.c| 12 ++-- drivers/staging/speakup/main.c| 6 +- drivers/staging/speakup/varhandlers.c | 6 +- 3 files

[PATCH] staging: rtl8712: Remove unnecessary ret variable

2016-02-14 Thread Joseph Bisch
Since the variable ret is set at the beginning of the function and never changes its value, we can just return the value it was set to. Found using coccinelle with misc/returnvar.cocci. Signed-off-by: Joseph Bisch --- drivers/staging/rtl8712/os_intfs.c | 3 +-- 1 file changed, 1 insertion

[PATCH] staging: rtl8712: Remove unnecessary ret variable

2016-02-14 Thread Joseph Bisch
. Signed-off-by: Joseph Bisch --- drivers/staging/rtl8712/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/os_intfs.c b/drivers/staging/rtl8712/os_intfs.c index b89e2d3..ab19112 100644 --- a/drivers/staging/rtl8712/os_intfs.c +++ b/drivers