mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
[media] ti-vpe: shut up a casting warning message
drivers/media/platform/ti-vpe/vpdma.c: In function 'vpdma_alloc_desc_buf': >> drivers/media/platform/ti-vpe/vpdma.c:332:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] WARN_ON((u32) buf->addr & VPDMA_DESC_ALIGN); ^ Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
78e100cb23
commit
14bb9b0485
1 changed files with 1 additions and 1 deletions
|
@ -329,7 +329,7 @@ int vpdma_alloc_desc_buf(struct vpdma_buf *buf, size_t size)
|
|||
if (!buf->addr)
|
||||
return -ENOMEM;
|
||||
|
||||
WARN_ON((u32) buf->addr & VPDMA_DESC_ALIGN);
|
||||
WARN_ON(((u32) buf->addr & VPDMA_DESC_ALIGN) != 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue