Commit ff0284cc authored by Wei Yongjun's avatar Wei Yongjun Committed by 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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 793708ff
......@@ -711,11 +711,9 @@ 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,
dev->adev.transfer_buffer[i],
urb->transfer_dma);
usb_free_coherent(dev->udev, urb->transfer_buffer_length,
dev->adev.transfer_buffer[i],
urb->transfer_dma);
usb_free_urb(urb);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment