1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

udev-ctrl: drop unused next_datagram_size_fd() call

This commit is contained in:
Mike Yuan 2024-08-31 15:37:36 +02:00
parent e8b9767f51
commit 3c0d765375
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -169,12 +169,6 @@ static int udev_ctrl_connection_event_handler(sd_event_source *s, int fd, uint32
* To avoid the object freed, let's increment the refcount. */
uctrl = udev_ctrl_ref(userdata);
size = next_datagram_size_fd(fd);
if (size < 0)
return log_error_errno(size, "Failed to get size of message: %m");
if (size == 0)
return 0; /* Client disconnects? */
size = recvmsg_safe(fd, &smsg, 0);
if (size == -EINTR)
return 0;