Skip to content
Commit 8e99469a authored by Geliang Tang's avatar Geliang Tang Committed by Linus Torvalds
Browse files

dma-mapping: use offset_in_page macro



Use offset_in_page macro instead of (addr & ~PAGE_MASK).

Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Acked-by: default avatarWill Deacon <will.deacon@arm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 20d666e4
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