]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
iovec-util: drop redundant ()
authorLennart Poettering <lennart@poettering.net>
Sun, 16 Nov 2025 07:11:07 +0000 (08:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 16 Nov 2025 22:36:11 +0000 (23:36 +0100)
src/fundamental/iovec-util-fundamental.h

index 024dd9bf78ca63bfc8e454563f383852b763a132..ef193a0dec3cacd9ba3257a10806cd1158e8a176 100644 (file)
@@ -38,5 +38,5 @@ static inline bool iovec_is_set(const struct iovec *iovec) {
 
 static inline bool iovec_is_valid(const struct iovec *iovec) {
         /* Checks if the iovec is either NULL, empty or points to a valid bit of memory */
-        return !iovec || (iovec->iov_base || iovec->iov_len == 0);
+        return !iovec || iovec->iov_base || iovec->iov_len == 0;
 }