tree:
git://git.infradead.org/users/hch/dma-mapping for-next
head: fdcd02a641e224c7364c8eca218b65619a1ee0a0
commit: fdcd02a641e224c7364c8eca218b65619a1ee0a0 [9/9] media: uvcvideo: Use
dma_alloc_noncontiguos API
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"cppcheck warnings: (new ones prefixed by >>)"
> drivers/media/usb/uvc/uvc_video.c:1109:0: warning: Redundant
assignment of 'dma_dev' to itself. [selfAssignment]
struct device
*dma_dev = dma_dev = stream_to_dmadev(uvc_urb->stream);
^
drivers/media/usb/uvc/uvc_video.c:1588:0: warning: Redundant assignment of
'dma_dev' to itself. [selfAssignment]
struct device *dma_dev = dma_dev = stream_to_dmadev(stream);
^
vim +/dma_dev +1109 drivers/media/usb/uvc/uvc_video.c
1106
1107 static void uvc_urb_dma_sync(struct uvc_urb *uvc_urb, bool for_device)
1108 {
1109 struct device *dma_dev = dma_dev =
stream_to_dmadev(uvc_urb->stream);
1110
1111 if (for_device) {
1112 dma_sync_sgtable_for_device(dma_dev, uvc_urb->sgt,
1113 DMA_FROM_DEVICE);
1114 } else {
1115 dma_sync_sgtable_for_cpu(dma_dev, uvc_urb->sgt,
1116 DMA_FROM_DEVICE);
1117 invalidate_kernel_vmap_range(uvc_urb->buffer,
1118 uvc_urb->stream->urb_size);
1119 }
1120 }
1121
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org