Skip to content

Commit fdb5379

Browse files
Justin Laikuba-moo
authored andcommitted
rtase: Modify the name of the goto label
Modify the name of the goto label in rtase_init_one(). Signed-off-by: Justin Lai <justinlai0215@realtek.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20241114112549.376101-2-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent bf3c76b commit fdb5379

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/net/ethernet/realtek/rtase/rtase_main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,7 +2115,7 @@ static int rtase_init_one(struct pci_dev *pdev,
21152115
ret = rtase_alloc_interrupt(pdev, tp);
21162116
if (ret < 0) {
21172117
dev_err(&pdev->dev, "unable to alloc MSIX/MSI\n");
2118-
goto err_out_1;
2118+
goto err_out_del_napi;
21192119
}
21202120

21212121
rtase_init_netdev_ops(dev);
@@ -2148,7 +2148,7 @@ static int rtase_init_one(struct pci_dev *pdev,
21482148
GFP_KERNEL);
21492149
if (!tp->tally_vaddr) {
21502150
ret = -ENOMEM;
2151-
goto err_out;
2151+
goto err_out_free_dma;
21522152
}
21532153

21542154
rtase_tally_counter_clear(tp);
@@ -2159,13 +2159,13 @@ static int rtase_init_one(struct pci_dev *pdev,
21592159

21602160
ret = register_netdev(dev);
21612161
if (ret != 0)
2162-
goto err_out;
2162+
goto err_out_free_dma;
21632163

21642164
netdev_dbg(dev, "%pM, IRQ %d\n", dev->dev_addr, dev->irq);
21652165

21662166
return 0;
21672167

2168-
err_out:
2168+
err_out_free_dma:
21692169
if (tp->tally_vaddr) {
21702170
dma_free_coherent(&pdev->dev,
21712171
sizeof(*tp->tally_vaddr),
@@ -2175,7 +2175,7 @@ static int rtase_init_one(struct pci_dev *pdev,
21752175
tp->tally_vaddr = NULL;
21762176
}
21772177

2178-
err_out_1:
2178+
err_out_del_napi:
21792179
for (i = 0; i < tp->int_nums; i++) {
21802180
ivec = &tp->int_vector[i];
21812181
netif_napi_del(&ivec->napi);

0 commit comments

Comments
 (0)