From: Jozsef Kadlecsik Date: Fri, 4 May 2012 19:45:07 +0000 (+0200) Subject: Remove unused variables (warnings fixed) X-Git-Tag: v6.12.1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2916bdda810591ecc8f3283b68136ec79f6c2377;p=ipset Remove unused variables (warnings fixed) --- diff --git a/lib/parse.c b/lib/parse.c index 2cbd30e..45937f0 100644 --- a/lib/parse.c +++ b/lib/parse.c @@ -1554,6 +1554,8 @@ ipset_parse_iface(struct ipset_session *session, if (STREQ(str, "physdev:")) { offset = 8; err = ipset_data_set(data, IPSET_OPT_PHYSDEV, str); + if (err < 0) + return err; } if (strlen(str + offset) > IFNAMSIZ - 1) return syntax_err("interface name '%s' is longer " diff --git a/lib/session.c b/lib/session.c index 2ff463e..01a2413 100644 --- a/lib/session.c +++ b/lib/session.c @@ -738,7 +738,6 @@ list_adt(struct ipset_session *session, struct nlattr *nla[]) const struct ipset_data *data = session->data; const struct ipset_type *type; const struct ipset_arg *arg; - uint8_t family; int i, found = 0; D("enter"); @@ -750,7 +749,6 @@ list_adt(struct ipset_session *session, struct nlattr *nla[]) if (type == NULL) return MNL_CB_ERROR; - family = ipset_data_family(data); for (i = IPSET_ATTR_UNSPEC + 1; i <= IPSET_ATTR_ADT_MAX; i++) if (nla[i]) {