Commit 5b0eb827 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] saa7164: 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 a896dc7a
...@@ -680,7 +680,6 @@ static int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val) ...@@ -680,7 +680,6 @@ static int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val)
int saa7164_api_configure_dif(struct saa7164_port *port, u32 std) int saa7164_api_configure_dif(struct saa7164_port *port, u32 std)
{ {
struct saa7164_dev *dev = port->dev; struct saa7164_dev *dev = port->dev;
int ret = 0;
u8 agc_disable; u8 agc_disable;
dprintk(DBGLVL_API, "%s(nr=%d, 0x%x)\n", __func__, port->nr, std); dprintk(DBGLVL_API, "%s(nr=%d, 0x%x)\n", __func__, port->nr, std);
...@@ -733,7 +732,7 @@ int saa7164_api_configure_dif(struct saa7164_port *port, u32 std) ...@@ -733,7 +732,7 @@ int saa7164_api_configure_dif(struct saa7164_port *port, u32 std)
saa7164_api_set_dif(port, 0x04, 0x00); /* Active (again) */ saa7164_api_set_dif(port, 0x04, 0x00); /* Active (again) */
msleep(100); msleep(100);
return ret; return 0;
} }
/* Ensure the dif is in the correct state for the operating mode /* Ensure the dif is in the correct state for the operating mode
......
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