diff options
Diffstat (limited to 'libglusterfs')
-rw-r--r-- | libglusterfs/src/common-utils.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index c90856cca3..3da01a4d11 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 |