Skip to content

Commit

Permalink
[media] dvb_frontend: return -ENOTTY for unimplement IOCTL
Browse files Browse the repository at this point in the history
Earlier it was returning -EOPNOTSUPP.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Antti Palosaari authored and Mauro Carvalho Chehab committed Sep 10, 2012
1 parent 36bdbc3 commit 177ffe5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1816,7 +1816,7 @@ static int dvb_frontend_ioctl(struct file *file,
struct dvb_frontend *fe = dvbdev->priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
struct dvb_frontend_private *fepriv = fe->frontend_priv;
int err = -EOPNOTSUPP;
int err = -ENOTTY;

dev_dbg(fe->dvb->device, "%s: (%d)\n", __func__, _IOC_NR(cmd));
if (fepriv->exit != DVB_FE_NO_EXIT)
Expand Down Expand Up @@ -1934,7 +1934,7 @@ static int dvb_frontend_ioctl_properties(struct file *file,
}

} else
err = -EOPNOTSUPP;
err = -ENOTTY;

out:
kfree(tvp);
Expand Down Expand Up @@ -2067,7 +2067,7 @@ static int dvb_frontend_ioctl_legacy(struct file *file,
struct dvb_frontend *fe = dvbdev->priv;
struct dvb_frontend_private *fepriv = fe->frontend_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
int err = -EOPNOTSUPP;
int err = -ENOTTY;

switch (cmd) {
case FE_GET_INFO: {
Expand Down

0 comments on commit 177ffe5

Please sign in to comment.