Commit fc823729 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 9b08f417
...@@ -1666,7 +1666,6 @@ static int ite_suspend(struct pnp_dev *pdev, pm_message_t state) ...@@ -1666,7 +1666,6 @@ static int ite_suspend(struct pnp_dev *pdev, pm_message_t state)
static int ite_resume(struct pnp_dev *pdev) static int ite_resume(struct pnp_dev *pdev)
{ {
int ret = 0;
struct ite_dev *dev = pnp_get_drvdata(pdev); struct ite_dev *dev = pnp_get_drvdata(pdev);
unsigned long flags; unsigned long flags;
...@@ -1681,7 +1680,7 @@ static int ite_resume(struct pnp_dev *pdev) ...@@ -1681,7 +1680,7 @@ static int ite_resume(struct pnp_dev *pdev)
spin_unlock_irqrestore(&dev->lock, flags); spin_unlock_irqrestore(&dev->lock, flags);
return ret; return 0;
} }
static void ite_shutdown(struct pnp_dev *pdev) static void ite_shutdown(struct pnp_dev *pdev)
......
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