Fix unused code (coverity defect #7520283)

Due to the logic above, isz cannot be zero if we take the else branch.
This commit is contained in:
Mahmoud Al-Qudsi 2018-02-08 16:54:27 -06:00
parent 56a46a0bab
commit 82b7e6de69

View File

@ -1848,11 +1848,7 @@ void format_size_safe(char buff[128], unsigned long long sz) {
if (isz > 9) {
append_ull(buff, isz, &idx, max_len);
} else {
if (isz == 0) {
append_str(buff, "0", &idx, max_len);
} else {
append_ull(buff, isz, &idx, max_len);
}
append_ull(buff, isz, &idx, max_len);
// Maybe append a single fraction digit.
unsigned long long remainder = sz % 1024;