[media] as102: remove some unneeded checks
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Sep 2014 07:58:53 +0000 (04:58 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Sep 2014 19:13:44 +0000 (16:13 -0300)
commit271430efb21223e9654fcae58955305c5f70663b
tree6cb560ad0b53ee51a758756e3bfcc2436777ae45
parent146af9cb809c6b6a0f4e215570fb3f397cd55a21
[media] as102: remove some unneeded checks

We know "ret" is zero so we don't need to test for it.  It upsets the
static checkers when we test stuff but we know the answer.

drivers/media/usb/as102/as102_usb_drv.c:164 as102_send_ep1() warn: we tested 'ret' before and it was 'false'
drivers/media/usb/as102/as102_usb_drv.c:189 as102_read_ep2() warn: we tested 'ret' before and it was 'false'

Also, we don't need to initialize "ret".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/as102/as102_usb_drv.c