From patchwork Fri Dec 7 11:51:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhijit Pawar X-Patchwork-Id: 1850421 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3DA99DF2EE for ; Fri, 7 Dec 2012 11:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201Ab2LGLwF (ORCPT ); Fri, 7 Dec 2012 06:52:05 -0500 Received: from mail-pa0-f46.google.com ([209.85.220.46]:62995 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753788Ab2LGLwE (ORCPT ); Fri, 7 Dec 2012 06:52:04 -0500 Received: by mail-pa0-f46.google.com with SMTP id bh2so421075pad.19 for ; Fri, 07 Dec 2012 03:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=JX/A6FqiX7DkVP8NOvb6MJMJ84/Rk63O9QutA3wlmAg=; b=ZbJvUmgW9naKrztkwMdCvXBvtuPBoS/VWgLl1tuACY70AG0tmM2qOlbVE7VazBxMZP A1ZyjC5AxWaKxQvIGG2FLdq+MXMlMy/pWyQU6tZ3W44OzZAz0qiiefuq+YSHdErl5Rts CG3KotRrASSqILNSuYKhJ+3ZVkDTIjAYmuTbNR4d0KIaFpvzrP0N85lvfjpIy7MOKmbc JZKlPSSJA2/i7OUjG/RMBvIb/vcclRlcxx1Yn138w+F+ZpxIRgHy8VfyR27CHrgeVuLL 53OLaIrfWVHIL6HtHQaV8e2ZI37C/eNTZXEnqCCQJMYwn1UlONCOtwbvSCkESze8mT3m 4mdA== Received: by 10.68.143.201 with SMTP id sg9mr15492571pbb.32.1354881123790; Fri, 07 Dec 2012 03:52:03 -0800 (PST) Received: from apawar-f16.cybage.com ([121.242.40.10]) by mx.google.com with ESMTPS id gu5sm6591762pbc.10.2012.12.07.03.52.00 (version=SSLv3 cipher=OTHER); Fri, 07 Dec 2012 03:52:02 -0800 (PST) From: Abhijit Pawar To: Trond Myklebust , "J. Bruce Fields" Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Abhijit Pawar Subject: [PATCH 3/4] include/sunrpc: remove obsolete simple_strto Date: Fri, 7 Dec 2012 17:21:36 +0530 Message-Id: <1354881096-23480-1-git-send-email-abhi.c.pawar@gmail.com> X-Mailer: git-send-email 1.7.7.6 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This patch replace the obsolete simple_strto with kstrto Signed-off-by: Abhijit Pawar --- include/linux/sunrpc/cache.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/sunrpc/cache.h b/include/linux/sunrpc/cache.h index 5dc9ee4..96d2545 100644 --- a/include/linux/sunrpc/cache.h +++ b/include/linux/sunrpc/cache.h @@ -218,7 +218,7 @@ static inline int get_int(char **bpp, int *anint) { char buf[50]; char *ep; - int rv; + int rv, rc; int len = qword_get(bpp, buf, sizeof(buf)); if (len < 0) @@ -226,8 +226,8 @@ static inline int get_int(char **bpp, int *anint) if (len == 0) return -ENOENT; - rv = simple_strtol(buf, &ep, 0); - if (*ep) + rc = kstrtoint(buf, 0, &rv); + if (rc) return -EINVAL; *anint = rv;