summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/tuner-xc2028.c
diff options
context:
space:
mode:
authorMax Kellermann2016-08-09 23:32:31 +0200
committerMauro Carvalho Chehab2016-11-18 18:07:26 +0100
commit194ced7a5a99b303daf0bca6d0a1697731265602 (patch)
tree076b3607b6ba1ab4a84681bbea9547a1a4ae1e7b /drivers/media/tuners/tuner-xc2028.c
parent[media] dvb_frontend: merge duplicate dvb_tuner_ops.release implementations (diff)
downloadkernel-qcow2-linux-194ced7a5a99b303daf0bca6d0a1697731265602.tar.gz
kernel-qcow2-linux-194ced7a5a99b303daf0bca6d0a1697731265602.tar.xz
kernel-qcow2-linux-194ced7a5a99b303daf0bca6d0a1697731265602.zip
[media] dvb_frontend: tuner_ops.release returns void
It is not clear what this return value means. All implemenations return 0, and the one caller ignores the value. Let's remove this useless return value completely. Signed-off-by: Max Kellermann <max.kellermann@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners/tuner-xc2028.c')
-rw-r--r--drivers/media/tuners/tuner-xc2028.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/tuners/tuner-xc2028.c b/drivers/media/tuners/tuner-xc2028.c
index e07c5fb59cc6..1a9665404ada 100644
--- a/drivers/media/tuners/tuner-xc2028.c
+++ b/drivers/media/tuners/tuner-xc2028.c
@@ -1321,7 +1321,7 @@ static int xc2028_sleep(struct dvb_frontend *fe)
return rc;
}
-static int xc2028_dvb_release(struct dvb_frontend *fe)
+static void xc2028_dvb_release(struct dvb_frontend *fe)
{
struct xc2028_data *priv = fe->tuner_priv;
@@ -1342,8 +1342,6 @@ static int xc2028_dvb_release(struct dvb_frontend *fe)
mutex_unlock(&xc2028_list_mutex);
fe->tuner_priv = NULL;
-
- return 0;
}
static int xc2028_get_frequency(struct dvb_frontend *fe, u32 *frequency)