diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-09-20 20:32:59 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-09-20 20:32:59 +0000 |
commit | 504911513b58e230b66928c4f6c56cc038326344 (patch) | |
tree | 6c5a48394921e7e1371f5ce9e1ab12a2a7d006d5 /drivers/dahdi | |
parent | 277136a926699e73eb41c0812c34ac5e8ec46099 (diff) |
dahdi: Remove unused parameter in three ioctl handlers.
The 'int cmd' parameter is unused and unneeded in dahdi_ioctl_getgains,
dahdi_ioctl_setgains, and dahdi_ioctl_chandiag.
Review: https://reviewboard.asterisk.org/r/905/
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9360 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index ef1507a..8d8f54b 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -3642,8 +3642,7 @@ static int dahdi_timer_ioctl(struct file *file, unsigned int cmd, unsigned long return 0; } -static int dahdi_ioctl_getgains(struct file *file, - unsigned int cmd, unsigned long data, int unit) +static int dahdi_ioctl_getgains(struct file *file, unsigned long data, int unit) { int res = 0; struct dahdi_gains *gain; @@ -3688,8 +3687,7 @@ cleanup: return res; } -static int dahdi_ioctl_setgains(struct file *file, - unsigned int cmd, unsigned long data, int unit) +static int dahdi_ioctl_setgains(struct file *file, unsigned long data, int unit) { int res = 0; struct dahdi_gains *gain; @@ -3766,7 +3764,7 @@ cleanup: return res; } -static int dahdi_ioctl_chandiag(struct file *file, int cmd, unsigned long data) +static int dahdi_ioctl_chandiag(struct file *file, unsigned long data) { unsigned long flags; int channo; @@ -4011,9 +4009,9 @@ static int dahdi_common_ioctl(struct file *file, unsigned int cmd, unsigned long case DAHDI_GETGAINS_V1: /* Intentional drop through. */ case DAHDI_GETGAINS: /* get gain stuff */ - return dahdi_ioctl_getgains(file, cmd, data, unit); + return dahdi_ioctl_getgains(file, data, unit); case DAHDI_SETGAINS: /* set gain stuff */ - return dahdi_ioctl_setgains(file, cmd, data, unit); + return dahdi_ioctl_setgains(file, data, unit); case DAHDI_SPANSTAT: size_to_copy = sizeof(struct dahdi_spaninfo); if (copy_from_user(&stack.spaninfo, user_data, size_to_copy)) @@ -4140,7 +4138,7 @@ static int dahdi_common_ioctl(struct file *file, unsigned int cmd, unsigned long break; case DAHDI_CHANDIAG_V1: /* Intentional drop through. */ case DAHDI_CHANDIAG: - return dahdi_ioctl_chandiag(file, cmd, data); + return dahdi_ioctl_chandiag(file, data); default: return -ENOTTY; } |