diff options
Diffstat (limited to 'drivers/net/vxge/vxge-ethtool.c')
-rw-r--r-- | drivers/net/vxge/vxge-ethtool.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/vxge/vxge-ethtool.c b/drivers/net/vxge/vxge-ethtool.c index c6736b972635..6faa39e9d7a6 100644 --- a/drivers/net/vxge/vxge-ethtool.c +++ b/drivers/net/vxge/vxge-ethtool.c | |||
@@ -108,7 +108,7 @@ static void vxge_ethtool_gregs(struct net_device *dev, | |||
108 | int index, offset; | 108 | int index, offset; |
109 | enum vxge_hw_status status; | 109 | enum vxge_hw_status status; |
110 | u64 reg; | 110 | u64 reg; |
111 | u8 *reg_space = (u8 *) space; | 111 | u64 *reg_space = (u64 *) space; |
112 | struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev); | 112 | struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev); |
113 | struct __vxge_hw_device *hldev = (struct __vxge_hw_device *) | 113 | struct __vxge_hw_device *hldev = (struct __vxge_hw_device *) |
114 | pci_get_drvdata(vdev->pdev); | 114 | pci_get_drvdata(vdev->pdev); |
@@ -128,8 +128,7 @@ static void vxge_ethtool_gregs(struct net_device *dev, | |||
128 | __func__, __LINE__); | 128 | __func__, __LINE__); |
129 | return; | 129 | return; |
130 | } | 130 | } |
131 | 131 | *reg_space++ = reg; | |
132 | memcpy((reg_space + offset), ®, 8); | ||
133 | } | 132 | } |
134 | } | 133 | } |
135 | } | 134 | } |