diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 14:36:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 16:59:29 -0400 |
commit | 5b0eb8271d9126db2daa2cf41422cc84ba319a6e (patch) | |
tree | 0acfd2f5ed3e18858e45a700ddbce39c28ca1f59 /drivers/media/pci | |
parent | a896dc7a1f416e2b76efabff27c624c69645cc50 (diff) |
[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: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/saa7164/saa7164-api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/pci/saa7164/saa7164-api.c b/drivers/media/pci/saa7164/saa7164-api.c index e042963d377d..4f3b1dd18ba4 100644 --- a/drivers/media/pci/saa7164/saa7164-api.c +++ b/drivers/media/pci/saa7164/saa7164-api.c | |||
@@ -680,7 +680,6 @@ static int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val) | |||
680 | int saa7164_api_configure_dif(struct saa7164_port *port, u32 std) | 680 | int saa7164_api_configure_dif(struct saa7164_port *port, u32 std) |
681 | { | 681 | { |
682 | struct saa7164_dev *dev = port->dev; | 682 | struct saa7164_dev *dev = port->dev; |
683 | int ret = 0; | ||
684 | u8 agc_disable; | 683 | u8 agc_disable; |
685 | 684 | ||
686 | dprintk(DBGLVL_API, "%s(nr=%d, 0x%x)\n", __func__, port->nr, std); | 685 | 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 | saa7164_api_set_dif(port, 0x04, 0x00); /* Active (again) */ | 732 | saa7164_api_set_dif(port, 0x04, 0x00); /* Active (again) */ |
734 | msleep(100); | 733 | msleep(100); |
735 | 734 | ||
736 | return ret; | 735 | return 0; |
737 | } | 736 | } |
738 | 737 | ||
739 | /* Ensure the dif is in the correct state for the operating mode | 738 | /* Ensure the dif is in the correct state for the operating mode |