mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
virnetlink: Drop unused variable from virNetlinkCommand()
The fds variable inside of virNetlinkCommand() is not used really. It's passed to memset() (hence compilers do not complain), but that's about it. Drop it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Claudio Fontana <cfontana@suse.de>
This commit is contained in:
parent
ea5352334a
commit
3d7faaf712
@ -333,13 +333,10 @@ int virNetlinkCommand(struct nl_msg *nl_msg,
|
|||||||
.nl_pid = dst_pid,
|
.nl_pid = dst_pid,
|
||||||
.nl_groups = 0,
|
.nl_groups = 0,
|
||||||
};
|
};
|
||||||
struct pollfd fds[1];
|
|
||||||
g_autofree struct nlmsghdr *temp_resp = NULL;
|
g_autofree struct nlmsghdr *temp_resp = NULL;
|
||||||
g_autoptr(virNetlinkHandle) nlhandle = NULL;
|
g_autoptr(virNetlinkHandle) nlhandle = NULL;
|
||||||
int len = 0;
|
int len = 0;
|
||||||
|
|
||||||
memset(fds, 0, sizeof(fds));
|
|
||||||
|
|
||||||
if (!(nlhandle = virNetlinkSendRequest(nl_msg, src_pid, nladdr,
|
if (!(nlhandle = virNetlinkSendRequest(nl_msg, src_pid, nladdr,
|
||||||
protocol, groups)))
|
protocol, groups)))
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user