[media] ite-cir: just return 0 instead of using a var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 19:03:08 +0000 (16:03 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:54 +0000 (17:59 -0300)
Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/rc/ite-cir.c

index 447fe35862dc2d5ad00cce91eb7fd61edaf9e4b5..56abf9120cc27491d20857958fa10b1111ce573e 100644 (file)
@@ -1666,7 +1666,6 @@ static int ite_suspend(struct pnp_dev *pdev, pm_message_t state)
 
 static int ite_resume(struct pnp_dev *pdev)
 {
-       int ret = 0;
        struct ite_dev *dev = pnp_get_drvdata(pdev);
        unsigned long flags;
 
@@ -1681,7 +1680,7 @@ static int ite_resume(struct pnp_dev *pdev)
 
        spin_unlock_irqrestore(&dev->lock, flags);
 
-       return ret;
+       return 0;
 }
 
 static void ite_shutdown(struct pnp_dev *pdev)