[svn-commits] sruffell: branch linux/sruffell/chan_list_refactoring r9263 - /linux/team/sru...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 2 12:41:05 CDT 2010
Author: sruffell
Date: Thu Sep 2 12:40:54 2010
New Revision: 9263
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9263
Log:
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.
Modified:
linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
Modified: linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c?view=diff&rev=9263&r1=9262&r2=9263
==============================================================================
--- linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c (original)
+++ linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c Thu Sep 2 12:40:54 2010
@@ -3671,8 +3671,7 @@
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;
@@ -3717,8 +3716,7 @@
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;
@@ -3795,7 +3793,7 @@
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;
@@ -4040,9 +4038,9 @@
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))
@@ -4169,7 +4167,7 @@
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;
}
More information about the svn-commits
mailing list