]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] ti-vpe: shut up a casting warning message
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 22 Aug 2014 10:45:02 +0000 (05:45 -0500)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 26 Aug 2014 21:52:01 +0000 (18:52 -0300)
   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>
drivers/media/platform/ti-vpe/vpdma.c

index 6121a0b3c7547ac142a5fa913fc11b22f99eddba..684ba19bbedd8d1aa992b57cfb4c85888390e749 100644 (file)
@@ -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;
 }