mlxsw: spectrum_router: Remove unused variable
authorIdo Schimmel <idosch@mellanox.com>
Mon, 6 Feb 2017 15:20:12 +0000 (16:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Feb 2017 16:25:56 +0000 (11:25 -0500)
Since commit 33b1341cd1bf ("mlxsw: spectrum_router: Fix handling of
neighbour structure") we no longer use destination IP for neighbour
lookup, so remove it.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

index 0d8201e679858afead4b3596f235f3f3b7bdd579..851799d60a20c222fccefe19dfc6a61598b25fe6 100644 (file)
@@ -1004,7 +1004,6 @@ int mlxsw_sp_router_netevent_event(struct notifier_block *unused,
        struct net_device *dev;
        struct neigh_parms *p;
        struct neighbour *n;
-       u32 dip;
 
        switch (event) {
        case NETEVENT_DELAY_PROBE_TIME_UPDATE:
@@ -1039,7 +1038,6 @@ int mlxsw_sp_router_netevent_event(struct notifier_block *unused,
                        return NOTIFY_DONE;
 
                mlxsw_sp = mlxsw_sp_port->mlxsw_sp;
-               dip = ntohl(*((__be32 *) n->primary_key));
                neigh_entry = mlxsw_sp_neigh_entry_lookup(mlxsw_sp, n);
                if (WARN_ON(!neigh_entry)) {
                        mlxsw_sp_port_dev_put(mlxsw_sp_port);