mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
soc: qcom: smem: Fix compilation warning
Fix compilation warning reported by sparse tool. Change-Id: I0e6d2d1f5f032f8931f104e262579af08cf63b73 Signed-off-by: Arun Prakash <app@codeaurora.org>
This commit is contained in:
parent
38b09e6378
commit
d1e2f95b13
1 changed files with 1 additions and 1 deletions
|
|
@ -735,7 +735,7 @@ phys_addr_t qcom_smem_virt_to_phys(void *p)
|
|||
if (p < region->virt_base)
|
||||
continue;
|
||||
if (p < region->virt_base + region->size) {
|
||||
u64 offset = p - region->virt_base;
|
||||
u64 offset = p - (void *)region->virt_base;
|
||||
|
||||
return (phys_addr_t)region->aux_base + offset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue