* Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2012, 2016, Intel Corporation.
+ * Copyright (c) 2012, 2017, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
int cmd;
int rc;
int gen;
- __u32 index;
+ u32 index;
obd_getref(obd);
obd_str2uuid(&tgt_uuid, lustre_cfg_buf(cfg, 1));
- if (sscanf(lustre_cfg_buf(cfg, 2), "%d", &index) != 1)
- GOTO(out, rc = -EINVAL);
+ rc = kstrtou32(lustre_cfg_buf(cfg, 2), 10, &index);
+ if (rc)
+ GOTO(out, rc);
mdc = class_find_client_obd(&tgt_uuid, LUSTRE_MDC_NAME,
&obd->obd_uuid);