projects
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
IB/mthca: Convert to use be16_add_cpu()
[linux-2.6]
/
drivers
/
infiniband
/
hw
/
mthca
/
mthca_allocator.c
diff --git
a/drivers/infiniband/hw/mthca/mthca_allocator.c
b/drivers/infiniband/hw/mthca/mthca_allocator.c
index
f930e55
..
a763067
100644
(file)
--- a/
drivers/infiniband/hw/mthca/mthca_allocator.c
+++ b/
drivers/infiniband/hw/mthca/mthca_allocator.c
@@
-255,7
+255,7
@@
int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct,
dma_list[i] = t;
pci_unmap_addr_set(&buf->page_list[i], mapping, t);
-
memset(buf->page_list[i].buf, 0, PAGE_SIZE
);
+
clear_page(buf->page_list[i].buf
);
}
}