The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=516243545e72684b2281b1a8c14b2870a306f6d1

commit 516243545e72684b2281b1a8c14b2870a306f6d1
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-09 00:25:13 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-04-09 00:25:13 +0000

    mlx4: Remove a variable only used in commented-out code.
    
    Reviewed by:    hselasky
    Differential Revision:  https://reviews.freebsd.org/D34825
---
 sys/dev/mlx4/mlx4_core/mlx4_eq.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/dev/mlx4/mlx4_core/mlx4_eq.c b/sys/dev/mlx4/mlx4_core/mlx4_eq.c
index dc23a7afb712..8a259f87861e 100644
--- a/sys/dev/mlx4/mlx4_core/mlx4_eq.c
+++ b/sys/dev/mlx4/mlx4_core/mlx4_eq.c
@@ -501,7 +501,6 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq 
*eq)
        int i;
        enum slave_port_gen_event gen_event;
        unsigned long flags;
-       struct mlx4_vport_state *s_info;
        int eqe_size = dev->caps.eqe_size;
 
        while ((eqe = next_eqe_sw(eq, dev->caps.eqe_factor, eqe_size))) {
@@ -611,7 +610,6 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq 
*eq)
                                                        continue;
                                                mlx4_dbg(dev, "%s: Sending 
MLX4_PORT_CHANGE_SUBTYPE_DOWN to slave: %d, port:%d\n",
                                                         __func__, i, port);
-                                               s_info = 
&priv->mfunc.master.vf_oper[i].vport[port].state;
                                                if (0 /*IFLA_VF_LINK_STATE_AUTO 
== s_info->link_state*/) {
                                                        
eqe->event.port_change.port =
                                                                cpu_to_be32(
@@ -652,7 +650,6 @@ static int mlx4_eq_int(struct mlx4_dev *dev, struct mlx4_eq 
*eq)
                                                        continue;
                                                if (i == 
mlx4_master_func_num(dev))
                                                        continue;
-                                               s_info = 
&priv->mfunc.master.vf_oper[i].vport[port].state;
                                                if (0 /*IFLA_VF_LINK_STATE_AUTO 
== s_info->link_state*/) {
                                                        
eqe->event.port_change.port =
                                                                cpu_to_be32(

Reply via email to