Commit 748683fa authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: eventfd: remove redundant conditional



Since the argument is a 32-bit unsigned int, all possible
values satisfy the condition that intval < UINT64_MAX - 1.

Remove the redundant conditional.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 995444d5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -435,9 +435,8 @@ int eventfd(unsigned int initval, int flags)
	if (initval != 0) {
		k_poll_signal_raise(&efd->read_sig, 0);
	}
	if (initval < UINT64_MAX - 1) {

	k_poll_signal_raise(&efd->write_sig, 0);
	}

	z_finalize_fd(fd, efd, &eventfd_fd_vtable);