• Mauro Carvalho Chehab's avatar
    [media] tm6000: remove needless check · 485bdbb6
    Mauro Carvalho Chehab authored
    Smatch reports a warning:
    	drivers/media/usb/tm6000/tm6000-video.c:646 tm6000_prepare_isoc() error: we previously assumed 'dev->urb_buffer' could be null (see line 624)
    
    This is not really a problem, but it actually shows that the check
    if urb_buffer is NULL is being done twice: at the if and at
    tm6000_alloc_urb_buffers().
    
    We don't need to do it twice. So, remove the extra check. The code
    become cleaner, and, as a collateral effect, smatch becomes happy.
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
    485bdbb6
tm6000-video.c 42.1 KB