diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2006-06-29 12:16:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-30 14:59:37 -0400 |
commit | 1b172e0c4e44151cd239c1e9260c7822a4eecdbf (patch) | |
tree | e523197eef1fa3368b47a738eda35c5847b69ef4 | |
parent | 591b631f030cee5f4c6cf016dd71d565a5a4eff6 (diff) |
V4L/DVB (4275): The FE_SET_FRONTEND_TUNE_MODE ioctl always returns EOPNOTSUPP
When someone added the front-end ioctl FE_SET_FRONTEND_TUNE_MODE, they
forgot to set the return value to 0. It always returns EOPNOTSUPP,
causing problems for programmers who actually check for error conditions.
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/dvb-core/dvb_frontend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index 5e8bb41a088b..1dc7d29a3bb9 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c | |||
@@ -975,6 +975,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file, | |||
975 | 975 | ||
976 | case FE_SET_FRONTEND_TUNE_MODE: | 976 | case FE_SET_FRONTEND_TUNE_MODE: |
977 | fepriv->tune_mode_flags = (unsigned long) parg; | 977 | fepriv->tune_mode_flags = (unsigned long) parg; |
978 | err = 0; | ||
978 | break; | 979 | break; |
979 | }; | 980 | }; |
980 | 981 | ||