ANDROID: staging: ion: Delete unused function ion_heap_buffer_zero

It was deleted in 5d41593935d9(staging: ion: refactor ion's heap
manipulators into a separate file) but was accidentally added back in
a64320f5b8e4(Merge 94709049fb).

Fixes: a64320f5b8 ("Merge 94709049fb ("Merge branch 'akpm' (patches from Andrew)") into android-mainline")

Change-Id: I125d2a78cf4872c80391888e6cd6e10d359d20fa
Signed-off-by: Hridya Valsaraju <hridya@google.com>
This commit is contained in:
Hridya Valsaraju 2020-07-29 18:15:00 -07:00
parent e00793e8f0
commit e6a522642d

View File

@ -240,19 +240,6 @@ static int ion_heap_sglist_zero(struct scatterlist *sgl, unsigned int nents,
return ret;
}
int ion_heap_buffer_zero(struct ion_buffer *buffer)
{
struct sg_table *table = buffer->sg_table;
pgprot_t pgprot;
if (buffer->flags & ION_FLAG_CACHED)
pgprot = PAGE_KERNEL;
else
pgprot = pgprot_writecombine(PAGE_KERNEL);
return ion_heap_sglist_zero(table->sgl, table->nents, pgprot);
}
int ion_heap_pages_zero(struct page *page, size_t size, pgprot_t pgprot)
{
struct scatterlist sg;