From: Jiri Pirko Date: Sun, 23 Feb 2020 07:31:40 +0000 (+0100) Subject: mlxsw: core: Remove initialization to false of mlxsw_listener struct X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=62c7f2512c2e9e641983d51a4f9ec8b286886c13;p=linux.git mlxsw: core: Remove initialization to false of mlxsw_listener struct No need to initialize to false, so remove it. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index 76c0d6e975dbe..c5890e35fd2f1 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -97,7 +97,6 @@ struct mlxsw_listener { .unreg_action = MLXSW_REG_HPKT_ACTION_##_unreg_action, \ .trap_group = MLXSW_REG_HTGT_TRAP_GROUP_##_trap_group, \ .is_ctrl = _is_ctrl, \ - .is_event = false, \ } #define MLXSW_EVENTL(_func, _trap_id, _trap_group) \ @@ -110,7 +109,6 @@ struct mlxsw_listener { }, \ .action = MLXSW_REG_HPKT_ACTION_TRAP_TO_CPU, \ .trap_group = MLXSW_REG_HTGT_TRAP_GROUP_##_trap_group, \ - .is_ctrl = false, \ .is_event = true, \ }