Skip to content

Commit 2c33159

Browse files
jpirkodavem330
authored andcommitted
mlxsw: spectrum_acl: Rename variables in mlxsw_sp_acl_tcam_ventry_migrate()
Remove some of variables in function mlxsw_sp_acl_tcam_ventry_migrate() so the names are aligned with the rest of the code. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e1d2f7a commit 2c33159

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,19 +1175,19 @@ mlxsw_sp_acl_tcam_ventry_activity_get(struct mlxsw_sp *mlxsw_sp,
11751175
static int
11761176
mlxsw_sp_acl_tcam_ventry_migrate(struct mlxsw_sp *mlxsw_sp,
11771177
struct mlxsw_sp_acl_tcam_ventry *ventry,
1178-
struct mlxsw_sp_acl_tcam_chunk *chunk2)
1178+
struct mlxsw_sp_acl_tcam_chunk *chunk)
11791179
{
1180-
struct mlxsw_sp_acl_tcam_entry *entry2;
1180+
struct mlxsw_sp_acl_tcam_entry *new_entry;
11811181

11821182
/* First check if the entry is not already where we want it to be. */
1183-
if (ventry->entry->chunk == chunk2)
1183+
if (ventry->entry->chunk == chunk)
11841184
return 0;
11851185

1186-
entry2 = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk2);
1187-
if (IS_ERR(entry2))
1188-
return PTR_ERR(entry2);
1186+
new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk);
1187+
if (IS_ERR(new_entry))
1188+
return PTR_ERR(new_entry);
11891189
mlxsw_sp_acl_tcam_entry_destroy(mlxsw_sp, ventry->entry);
1190-
ventry->entry = entry2;
1190+
ventry->entry = new_entry;
11911191
return 0;
11921192
}
11931193

0 commit comments

Comments
 (0)