aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 15:03:08 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 16:59:54 -0400
commitfc823729e0b432a628d3f32e11dfa83a30de35aa (patch)
tree5981e310aa987764fd1d290cea64934e98f0d314 /drivers/media/rc
parent9b08f41724b60a49979a2458e90918f812228a37 (diff)
[media] ite-cir: just return 0 instead of using a var
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>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r--drivers/media/rc/ite-cir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/rc/ite-cir.c b/drivers/media/rc/ite-cir.c
index 447fe35862dc..56abf9120cc2 100644
--- a/drivers/media/rc/ite-cir.c
+++ b/drivers/media/rc/ite-cir.c
@@ -1666,7 +1666,6 @@ static int ite_suspend(struct pnp_dev *pdev, pm_message_t state)
1666 1666
1667static int ite_resume(struct pnp_dev *pdev) 1667static int ite_resume(struct pnp_dev *pdev)
1668{ 1668{
1669 int ret = 0;
1670 struct ite_dev *dev = pnp_get_drvdata(pdev); 1669 struct ite_dev *dev = pnp_get_drvdata(pdev);
1671 unsigned long flags; 1670 unsigned long flags;
1672 1671
@@ -1681,7 +1680,7 @@ static int ite_resume(struct pnp_dev *pdev)
1681 1680
1682 spin_unlock_irqrestore(&dev->lock, flags); 1681 spin_unlock_irqrestore(&dev->lock, flags);
1683 1682
1684 return ret; 1683 return 0;
1685} 1684}
1686 1685
1687static void ite_shutdown(struct pnp_dev *pdev) 1686static void ite_shutdown(struct pnp_dev *pdev)