[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1f79b52d-673f-63bb-0bd8-713139a322ab@users.sourceforge.net>
Date: Mon, 17 Apr 2017 17:27:13 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>,
Jarod Wilson <jarod@...hat.com>,
Jisheng Zhang <jszhang@...vell.com>,
Mirko Lindner <mlindner@...vell.com>,
Philippe Reynes <tremyfr@...il.com>,
Russell King <rmk+kernel@...linux.org.uk>,
Sergei Shtylyov <sergei.shtylyov@...entembedded.com>,
Stephen Hemminger <stephen@...workplumber.org>,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 17/25] net: mvpp2: Rename a jump label in mvpp2_txq_init()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Mon, 17 Apr 2017 12:58:33 +0200
Adjust jump labels according to the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/net/ethernet/marvell/mvpp2.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c
index 8f4348316d28..a5cd1036012a 100644
--- a/drivers/net/ethernet/marvell/mvpp2.c
+++ b/drivers/net/ethernet/marvell/mvpp2.c
@@ -5087,7 +5087,7 @@ static int mvpp2_txq_init(struct mvpp2_port *port,
sizeof(*txq_pcpu->buffs),
GFP_KERNEL);
if (!txq_pcpu->buffs)
- goto error;
+ goto cleanup;
txq_pcpu->count = 0;
txq_pcpu->reserved_num = 0;
@@ -5096,8 +5096,7 @@ static int mvpp2_txq_init(struct mvpp2_port *port,
}
return 0;
-
-error:
+cleanup:
for_each_present_cpu(cpu) {
txq_pcpu = per_cpu_ptr(txq->pcpu, cpu);
kfree(txq_pcpu->buffs);
--
2.12.2
Powered by blists - more mailing lists