Skip to content

Commit

Permalink
IB/mthca: Replace memset(<addr>, 0, PAGE_SIZE) with clear_page(<addr>)
Browse files Browse the repository at this point in the history
Signed-off-by: Shani Moideen <shani.moideen@wipro.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
----
  • Loading branch information
Shani Moideen authored and Roland Dreier committed Jul 10, 2007
1 parent 20089ca commit 8909c57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mthca/mthca_eq.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ static int mthca_create_eq(struct mthca_dev *dev,
dma_list[i] = t;
pci_unmap_addr_set(&eq->page_list[i], mapping, t);

memset(eq->page_list[i].buf, 0, PAGE_SIZE);
clear_page(eq->page_list[i].buf);
}

for (i = 0; i < eq->nent; ++i)
Expand Down

0 comments on commit 8909c57

Please sign in to comment.