Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754180AbdCBRZT (ORCPT ); Thu, 2 Mar 2017 12:25:19 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34623 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbdCBRZN (ORCPT ); Thu, 2 Mar 2017 12:25:13 -0500 Date: Thu, 2 Mar 2017 15:28:23 +0100 From: Marcin Ciupak To: William Hubbs Cc: Chris Brannon , Kirk Reiser , Samuel Thibault , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: speakup: replace simple_strtoul with kstrtou8 Message-ID: <20170302142823.GA12213@gentoo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 770 Lines: 28 Replace simple_strtoul with kstrtou8. simple_strtoul is marked for obsoletion. Signed-off-by: Marcin Ciupak --- drivers/staging/speakup/varhandlers.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/speakup/varhandlers.c b/drivers/staging/speakup/varhandlers.c index cc984196020f..c219db745865 100644 --- a/drivers/staging/speakup/varhandlers.c +++ b/drivers/staging/speakup/varhandlers.c @@ -323,11 +323,10 @@ char *spk_strlwr(char *s) char *spk_s2uchar(char *start, char *dest) { - int val; + int ret; - val = simple_strtoul(skip_spaces(start), &start, 10); + ret = kstrtou8(skip_spaces(start), 10, dest); if (*start == ',') start++; - *dest = (u_char)val; return start; } -- 2.11.1