From: Mauro Carvalho Chehab Date: Fri, 5 Jun 2015 12:33:44 +0000 (-0300) Subject: [media] tm6000: remove needless check X-Git-Tag: omap-for-v4.2/fixes-rc1^2~111^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485bdbb6b83309505654379153d55746d5996917;p=pandora-kernel.git [media] tm6000: remove needless check 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: Mauro Carvalho Chehab --- Reading git-diff-tree failed