Skip to content

Commit

Permalink
V4L/DVB (4275): The FE_SET_FRONTEND_TUNE_MODE ioctl always returns EO…
Browse files Browse the repository at this point in the history
…PNOTSUPP

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>
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Jun 30, 2006
1 parent 591b631 commit 1b172e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,

case FE_SET_FRONTEND_TUNE_MODE:
fepriv->tune_mode_flags = (unsigned long) parg;
err = 0;
break;
};

Expand Down

0 comments on commit 1b172e0

Please sign in to comment.