diff options
author | Jim Meyering <meyering@fb.com> | 2022-01-17 10:13:19 +0100 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2022-01-17 10:13:19 +0100 |
commit | 23f8fe49f1ed02991007d0c53bca2fac8f7631a4 (patch) | |
tree | 0f0e2575c726155bc86d4d9269c154fb129430db /lib | |
parent | 8268fd1afacf593225218cca98b6f07488d8f67e (diff) | |
download | gnulib-23f8fe49f1ed02991007d0c53bca2fac8f7631a4.tar.gz |
xstrtol: remove unnecessary else after return
* lib/xstrtol.c (bkm_scale): Drop "else" after return.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xstrtol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xstrtol.c b/lib/xstrtol.c index 6f5a8bef60..3e2efb2a17 100644 --- a/lib/xstrtol.c +++ b/lib/xstrtol.c @@ -52,8 +52,8 @@ bkm_scale (__strtol_t *x, int scale_factor) *x = *x < 0 ? TYPE_MINIMUM (__strtol_t) : TYPE_MAXIMUM (__strtol_t); return LONGINT_OVERFLOW; } - else - *x = scaled; + + *x = scaled; return LONGINT_OK; } |