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:
Michal Privoznik 2023-08-03 10:43:13 +02:00
parent ea5352334a
commit 3d7faaf712

View File

@ -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;