Commit bcb2cf6e authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] ngene: remove an unneeded condition

"stat" is always zero here.  The condition used to be needed, but we
shifted stuff around in 0f0b270f "[media] ngene: CXD2099AR Common
Interface driver".

This doesn't change how the code works, it's just a bit tidier.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2e71064f
...@@ -1409,10 +1409,8 @@ static int ngene_start(struct ngene *dev) ...@@ -1409,10 +1409,8 @@ static int ngene_start(struct ngene *dev)
if (stat < 0) if (stat < 0)
goto fail; goto fail;
if (!stat) return 0;
return stat;
/* otherwise error: fall through */
fail: fail:
ngwritel(0, NGENE_INT_ENABLE); ngwritel(0, NGENE_INT_ENABLE);
free_irq(dev->pci_dev->irq, dev); free_irq(dev->pci_dev->irq, dev);
......
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