From 504911513b58e230b66928c4f6c56cc038326344 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 20 Sep 2010 20:32:59 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9360 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'drivers/dahdi') 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; } -- cgit v1.2.3