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:
parent
e8b9767f51
commit
3c0d765375
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user