summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/common-utils.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index c90856cca33..3da01a4d117 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -1393,13 +1393,8 @@ gf_string2int64 (const char *str, int64_t *n)
if (rv != 0)
return rv;
- if (l <= INT64_MAX) {
- *n = (int64_t) l;
- return 0;
- }
-
- errno = ERANGE;
- return -1;
+ *n = (int64_t) l;
+ return 0;
}
int