mlxsw: spectrum_dpipe: Fix label name
authorArkadi Sharshevsky <arkadis@mellanox.com>
Thu, 24 Aug 2017 06:40:05 +0000 (08:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 16:33:16 +0000 (09:33 -0700)
Change label name for case of erif table init failure.

Signed-off-by: Arkadi Sharshevsky <arkadis@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_dpipe.c

index 1305df9c6bf92bf3520ccd421f5b4277be1047f3..6310c2c204c7be6b44006b508c404b1f9d561746 100644 (file)
@@ -324,10 +324,10 @@ int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp)
                return err;
        err = mlxsw_sp_dpipe_erif_table_init(mlxsw_sp);
        if (err)
-               goto err_erif_register;
+               goto err_erif_table_init;
        return 0;
 
-err_erif_register:
+err_erif_table_init:
        devlink_dpipe_headers_unregister(priv_to_devlink(mlxsw_sp->core));
        return err;
 }