Skip to content

Commit 2a8ce47

Browse files
committed
Merge branch 'modifying-format-and-renaming-goto-labels'
Justin Lai says: ==================== Modifying format and renaming goto labels This patch set primarily involves modifying the enum rtase_registers format and renaming the goto labels in rtase_init_one. ==================== Link: https://patch.msgid.link/20241114112549.376101-1-justinlai0215@realtek.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents bf3c76b + 39007e1 commit 2a8ce47

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

drivers/net/ethernet/realtek/rtase/rtase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ enum rtase_registers {
170170
RTASE_INT_MITI_TX = 0x0A00,
171171
RTASE_INT_MITI_RX = 0x0A80,
172172

173-
RTASE_VLAN_ENTRY_0 = 0xAC80,
173+
RTASE_VLAN_ENTRY_0 = 0xAC80,
174174
};
175175

176176
enum rtase_desc_status_bit {

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)