Commit 99502693 authored by Federico Vaga's avatar Federico Vaga

sw:drv: use explicit type when comparing variables

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 689c5997
......@@ -171,7 +171,7 @@ static int sg_alloc_table_from_pages_no_squash(struct sg_table *sgt,
unsigned long chunk_size;
chunk_size = PAGE_SIZE - offset;
sg_set_page(sg, pages[i], min(size, chunk_size), offset);
sg_set_page(sg, pages[i], min_t(unsigned long, size, chunk_size), offset);
offset = 0;
size -= chunk_size;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment