[media] ngene: remove an unneeded condition
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Apr 2012 12:15:02 +0000 (09:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Apr 2012 18:29:23 +0000 (15:29 -0300)
"stat" is always zero here.  The condition used to be needed, but we
shifted stuff around in 0f0b270f90 "[media] ngene: CXD2099AR Common
Interface driver".

This doesn't change how the code works, it's just a bit tidier.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/ngene/ngene-core.c

index f129a9303f80a364f0956fb17033169f8a11a659..39857384af1072d6295938ab1ca504404f5c6208 100644 (file)
@@ -1409,10 +1409,8 @@ static int ngene_start(struct ngene *dev)
        if (stat < 0)
                goto fail;
 
-       if (!stat)
-               return stat;
+       return 0;
 
-       /* otherwise error: fall through */
 fail:
        ngwritel(0, NGENE_INT_ENABLE);
        free_irq(dev->pci_dev->irq, dev);