Commit 2dd9f8e0 authored by Stephen Hemminger's avatar Stephen Hemminger

libnetlink: fix set never used warning

parent bf808cbf
......@@ -493,7 +493,7 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
nladdr.nl_groups = 0;
while (1) {
int err, len, type;
int err, len;
int l;
status = fread(&buf, 1, sizeof(*h), rtnl);
......@@ -508,7 +508,6 @@ int rtnl_from_file(FILE *rtnl, rtnl_filter_t handler,
return 0;
len = h->nlmsg_len;
type= h->nlmsg_type;
l = len - sizeof(*h);
if (l<0 || len>sizeof(buf)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment