net: mvpp2: Rename a jump label in mvpp2_prs_vlan_add()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 11:50:35 +0000 (13:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:09 +0000 (13:55 -0400)
Adjust jump labels according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index 0c190bd003b1fdca761cb8be047d00e915b9bd6d..3bdd3f1fe34eab7470c2649a7f644fee89aee338 100644 (file)
@@ -2021,7 +2021,7 @@ static int mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai,
 
                if (tid <= tid_aux) {
                        ret = -EINVAL;
-                       goto error;
+                       goto free_pe;
                }
 
                memset(pe, 0, sizeof(*pe));
@@ -2053,8 +2053,7 @@ static int mvpp2_prs_vlan_add(struct mvpp2 *priv, unsigned short tpid, int ai,
        mvpp2_prs_tcam_port_map_set(pe, port_map);
 
        mvpp2_prs_hw_write(priv, pe);
-
-error:
+free_pe:
        kfree(pe);
 
        return ret;