summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authordzwdz2022-08-01 16:11:41 +0200
committerdzwdz2022-08-01 16:11:41 +0200
commit24a5f2bf46432aef70fd8d2ebf6c7ba94a6ce5a2 (patch)
tree49ed84a9e582a6397d0863ba61c6e1b03cde2b09 /src/shared
parentaaf76cb6139267482aeef9215d514229058f0042 (diff)
fsutil: remove debug `true ||` in if condition
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/fsutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/fsutil.c b/src/shared/fsutil.c
index 45a64f6..a03ed0c 100644
--- a/src/shared/fsutil.c
+++ b/src/shared/fsutil.c
@@ -35,7 +35,7 @@ void fs_normslice(long *restrict offset, size_t *restrict length, size_t max, bo
* so their sum must not overflow it. */
if ((size_t)*offset <= max) {
size_t maxlen = max - (size_t)*offset;
- if (true || *length > maxlen)
+ if (*length > maxlen)
*length = maxlen;
} else {
/* regular EOF */