Skip to contentSkip to conversation

kmod: remove useless debug hack

PATCH In review Thomas Monjalon 2 participants 3 messages Sep 27, 2013 – Sep 30, 2013 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kmod: remove useless debug hack

The PCI address was stored in unused variables of the netdev. It has been introduced in commit 75ab826258c1099e2e56ec48fd17dfa5591111cd. But it is a useless hack.

---
 kmod/vmxnet3_drv.c |   12 ------------
 1 file changed, 12 deletions(-)
kmod/vmxnet3_drv.c +0 -12
index 0443ad6..fc51f7e 100644
@@ -3928,9 +3928,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
 	int size;
 	int num_tx_queues = num_tqs[atomic_read(&devices_found)];
 	int num_rx_queues = num_rqs[atomic_read(&devices_found)];
-	/* Parse device address on the PCIe bus. */
-	uint16_t dom = 0;
-	uint8_t bus = 0, dev = 0, func = 0;
 
 #ifdef VMXNET3_RSS
 	if ((atomic_read(&devices_found) < VMXNET3_SHM_MAX_DEVICES &&
@@ -4171,15 +4168,6 @@ vmxnet3_probe_device(struct pci_dev *pdev,
 	vmxnet3_check_link(adapter, FALSE);
 	atomic_inc(&devices_found);
 
-	/* Fill PCIe bus address info. */
-	sscanf(dev_name(adapter->netdev->dev.parent),
-	       "%04hx:%02hhx:%02hhx.%hhd",
-	       &dom, &bus, &dev, &func);
-
-	adapter->netdev->mem_start = (dom<<16)|(bus<<8)|dev;
-	adapter->netdev->mem_end = (dom<<16)|(bus<<8)|dev;
-	adapter->netdev->if_port = func;
-
 	return 0;
 
 err_register:
Signature · 1 line
1.7.10.4

A message that is not in the archive (sent off-list or not yet received): 1380294447-27932-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org

#2 lore raw
Quoted 8 lines · Thomas Monjalon

The PCI address was stored in unused variables of the netdev. It has been introduced in commit 75ab826258c1099e2e56ec48fd17dfa5591111cd. But it is a useless hack.

---
 kmod/vmxnet3_drv.c |   12 ------------
 1 file changed, 12 deletions(-)

Ack

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

27/09/2013 17:13, Damien Millescamps :

Quoted 5 lines · Thomas Monjalon
Quoted 4 lines

The PCI address was stored in unused variables of the netdev. It has been introduced in commit 75ab826258c1099e2e56ec48fd17dfa5591111cd. But it is a useless hack.

Quoted 7 lines
Quoted 5 lines

---

 kmod/vmxnet3_drv.c |   12 ------------
 1 file changed, 12 deletions(-)

Ack

pushed

Signature · 1 line
Thomas