From: Jiri Pirko Date: Thu, 29 Sep 2022 10:24:36 +0000 (+0200) Subject: devlink: fix typo in variable name in ifname_map_cb() X-Git-Tag: v6.1.0~33^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8d3aadf347c72e7a29fc297b0b92ce2611d0391;p=thirdparty%2Fiproute2.git devlink: fix typo in variable name in ifname_map_cb() s/port_ifindex/port_index/ Signed-off-by: Jiri Pirko Signed-off-by: David Ahern --- diff --git a/devlink/devlink.c b/devlink/devlink.c index 0e194c980..8c02730b2 100644 --- a/devlink/devlink.c +++ b/devlink/devlink.c @@ -782,7 +782,7 @@ static int ifname_map_cb(const struct nlmsghdr *nlh, void *data) struct ifname_map *ifname_map; const char *bus_name; const char *dev_name; - uint32_t port_ifindex; + uint32_t port_index; const char *port_ifname; mnl_attr_parse(nlh, sizeof(*genl), attr_cb, tb); @@ -795,10 +795,10 @@ static int ifname_map_cb(const struct nlmsghdr *nlh, void *data) bus_name = mnl_attr_get_str(tb[DEVLINK_ATTR_BUS_NAME]); dev_name = mnl_attr_get_str(tb[DEVLINK_ATTR_DEV_NAME]); - port_ifindex = mnl_attr_get_u32(tb[DEVLINK_ATTR_PORT_INDEX]); + port_index = mnl_attr_get_u32(tb[DEVLINK_ATTR_PORT_INDEX]); port_ifname = mnl_attr_get_str(tb[DEVLINK_ATTR_PORT_NETDEV_NAME]); ifname_map = ifname_map_alloc(bus_name, dev_name, - port_ifindex, port_ifname); + port_index, port_ifname); if (!ifname_map) return MNL_CB_ERROR; list_add(&ifname_map->list, &dl->ifname_map_list);