Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8909c571 authored by Shani Moideen's avatar Shani Moideen Committed by Roland Dreier
Browse files

IB/mthca: Replace memset(<addr>, 0, PAGE_SIZE) with clear_page(<addr>)



Signed-off-by: default avatarShani Moideen <shani.moideen@wipro.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
----
parent 20089ca5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
		}
	}

+1 −1
Original line number Diff line number Diff line
@@ -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)