Skip to contentSkip to conversation

3c509.c: remove device.name field

PATCH Applied Vinay K Nallamothu 2 participants 4 messages Aug 23, 2003 – Aug 24, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 3c509.c: remove device.name field

Hi,

This patch removes the device name field which is no longer present.

drivers/net/3c509.c +0 -2
@@ -629,8 +629,6 @@
 			   el3_mca_adapter_names[mdev->index], slot + 1);
 
 		/* claim the slot */
-		strncpy(device->name, el3_mca_adapter_names[mdev->index],
-				sizeof(device->name));
 		mca_device_set_claim(mdev, 1);
 
 		if_port = pos4 & 0x03;
#1 lore raw
Quoted 1 line · On 23 Aug 2003 18:43:29 +0530 Vinay K Nallamothu <[email protected]>…

This patch removes the device name field which is no longer present.

This doesn't look like the right fix. You can't just delete these lines, you should rather replace them with accesses to whatever the MCA device struct name field is.

#2 lore raw

Hi Dave,

Quoted 10 lines · David S. Miller
Quoted 1 line · On 23 Aug 2003 18:43:29 +0530 Vinay K Nallamothu <[email protected]>…

This patch removes the device name field which is no longer present.

This doesn't look like the right fix. You can't just delete these lines, you should rather replace them with accesses to whatever the MCA device struct name field is.

Pls find the updated patch (hopefully right this time) below:

Thanks
vinay

drivers/net/3c509.c +2 -2
@@ -629,8 +629,8 @@
 			   el3_mca_adapter_names[mdev->index], slot + 1);
 
 		/* claim the slot */
-		strncpy(device->name, el3_mca_adapter_names[mdev->index],
-				sizeof(device->name));
+		strncpy(mdev->name, el3_mca_adapter_names[mdev->index],
+				sizeof(mdev->name));
 		mca_device_set_claim(mdev, 1);
 
 		if_port = pos4 & 0x03;
#3 lore raw
Quoted 4 lines · On 24 Aug 2003 17:55:40 +0530 Vinay K Nallamothu <[email protected]>…
Quoted 3 lines · David S. Miller

On 23 Aug 2003 18:43:29 +0530
Vinay K Nallamothu <[email protected]> wrote:

Quoted 8 lines
Quoted 7 lines
Quoted 1 line

This patch removes the device name field which is no longer present.

This doesn't look like the right fix. You can't just delete these lines, you should rather replace them with accesses to whatever the MCA device struct name field is.

Pls find the updated patch (hopefully right this time) below:

Applied, thanks.