]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: "boolean == true" looks strange :-)
authorVolker Lendecke <vl@samba.org>
Sun, 21 Sep 2025 12:36:37 +0000 (14:36 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 10 Nov 2025 13:29:30 +0000 (13:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
lib/util/util.c

index 139b75b616a26e1dae75e1a2ed36a6b36ee4c46a..bd610fa70456ebe7c23d45708bf4b925f5828962 100644 (file)
@@ -552,8 +552,7 @@ void dump_data_cb(const uint8_t *buf, int len,
                size_t this_len = MIN(remaining_len, 16);
                const uint8_t *this_buf = &buf[i];
 
-               if ((omit_zero_bytes == true) &&
-                   (i > 0) && (remaining_len > 16) &&
+               if (omit_zero_bytes && (i > 0) && (remaining_len > 16) &&
                    (this_len == 16) && all_zero(this_buf, 16))
                {
                        if (!skipped) {
@@ -658,8 +657,7 @@ void dump_data_diff_cb(const uint8_t *buf1, size_t len1,
                        this_buf2 = &buf2[i];
                }
 
-               if ((omit_zero_bytes == true) &&
-                   (i > 0) && (remaining_len > 16) &&
+               if (omit_zero_bytes && (i > 0) && (remaining_len > 16) &&
                    (this_len1 == 16) && all_zero(this_buf1, 16) &&
                    (this_len2 == 16) && all_zero(this_buf2, 16))
                {