1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

sd-netlink: drop redundant 'else'

This commit is contained in:
Yu Watanabe 2022-11-25 02:41:57 +09:00
parent 027193db48
commit b374397ec5

View File

@ -258,8 +258,7 @@ int socket_read_message(sd_netlink *nl) {
r = socket_recv_message(nl->fd, &iov, NULL, true);
if (r <= 0)
return r;
else
len = (size_t) r;
len = (size_t) r;
/* make room for the pending message */
if (!greedy_realloc((void**) &nl->rbuffer, len, sizeof(uint8_t)))
@ -272,8 +271,7 @@ int socket_read_message(sd_netlink *nl) {
r = socket_recv_message(nl->fd, &iov, &group, false);
if (r <= 0)
return r;
else
len = (size_t) r;
len = (size_t) r;
if (len > allocated)
/* message did not fit in read buffer */