提交 ff0284cc 编写于 作者: W Wei Yongjun 提交者: Mauro Carvalho Chehab

[media] em28xx-audio: remove needless check before usb_free_coherent()

usb_free_coherent() is safe with NULL addr and this check is
not required.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 793708ff
......@@ -711,9 +711,7 @@ static void em28xx_audio_free_urb(struct em28xx *dev)
if (!urb)
continue;
if (dev->adev.transfer_buffer[i])
usb_free_coherent(dev->udev,
urb->transfer_buffer_length,
usb_free_coherent(dev->udev, urb->transfer_buffer_length,
dev->adev.transfer_buffer[i],
urb->transfer_dma);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册