summaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/mr.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-02-06 21:17:59 -0800
committerRoland Dreier <rolandd@cisco.com>2008-02-06 21:17:59 -0800
commitb57aacfa7a95328f469d0360e49289b023c47e9e (patch)
tree5642416e92540b93ffb1221ae75b3f1f43ffcd7b /drivers/net/mlx4/mr.c
parent313abe55a87bc10e55d00f337d609e17ad5f8c9a (diff)
downloadop-kernel-dev-b57aacfa7a95328f469d0360e49289b023c47e9e.zip
op-kernel-dev-b57aacfa7a95328f469d0360e49289b023c47e9e.tar.gz
mlx4_core: Clean up struct mlx4_buf
Now that struct mlx4_buf.u is a struct instead of a union because of the vmap() changes, there's no point in having a struct at all. So move .direct and .page_list directly into struct mlx4_buf and get rid of a bunch of unnecessary ".u"s. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/net/mlx4/mr.c')
-rw-r--r--drivers/net/mlx4/mr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/mr.c b/drivers/net/mlx4/mr.c
index 9c9e308..679dfdb 100644
--- a/drivers/net/mlx4/mr.c
+++ b/drivers/net/mlx4/mr.c
@@ -419,9 +419,9 @@ int mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt,
for (i = 0; i < buf->npages; ++i)
if (buf->nbufs == 1)
- page_list[i] = buf->u.direct.map + (i << buf->page_shift);
+ page_list[i] = buf->direct.map + (i << buf->page_shift);
else
- page_list[i] = buf->u.page_list[i].map;
+ page_list[i] = buf->page_list[i].map;
err = mlx4_write_mtt(dev, mtt, 0, buf->npages, page_list);
OpenPOWER on IntegriCloud