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 aaf374cfd322..cadef8549c06 100644 --- a/drivers/net/vxge/vxge-ethtool.c +++ b/drivers/net/vxge/vxge-ethtool.c | |||
@@ -109,7 +109,7 @@ static void vxge_ethtool_gregs(struct net_device *dev, | |||
109 | int index, offset; | 109 | int index, offset; |
110 | enum vxge_hw_status status; | 110 | enum vxge_hw_status status; |
111 | u64 reg; | 111 | u64 reg; |
112 | u8 *reg_space = (u8 *) space; | 112 | u64 *reg_space = (u64 *) space; |
113 | struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev); | 113 | struct vxgedev *vdev = (struct vxgedev *)netdev_priv(dev); |
114 | struct __vxge_hw_device *hldev = (struct __vxge_hw_device *) | 114 | struct __vxge_hw_device *hldev = (struct __vxge_hw_device *) |
115 | pci_get_drvdata(vdev->pdev); | 115 | pci_get_drvdata(vdev->pdev); |
@@ -129,8 +129,7 @@ static void vxge_ethtool_gregs(struct net_device *dev, | |||
129 | __func__, __LINE__); | 129 | __func__, __LINE__); |
130 | return; | 130 | return; |
131 | } | 131 | } |
132 | 132 | *reg_space++ = reg; | |
133 | memcpy((reg_space + offset), ®, 8); | ||
134 | } | 133 | } |
135 | } | 134 | } |
136 | } | 135 | } |