Skip to content

Commit

Permalink
net: mvpp2: Rename a jump label in mvpp2_prs_vlan_add()
Browse files Browse the repository at this point in the history
Adjust jump labels according to the Linux coding style convention.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
elfring authored and davem330 committed Apr 18, 2017
1 parent c9a7e12 commit f9fd0e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/net/ethernet/marvell/mvpp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f9fd0e3

Please sign in to comment.