summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-17 20:11:44 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 22:51:00 +0200
commit9c0650117290c30b94e1c3513b67808fb5f7a143 (patch)
treeb45e2cc6e69c72cb77b25dc69033f4e25eb98285
parent6ac025f801eaaf1aec4f652b951424522ec00686 (diff)
downloadcryptodev-linux-9c0650117290c30b94e1c3513b67808fb5f7a143.tar.gz
cryptodev-linux-9c0650117290c30b94e1c3513b67808fb5f7a143.tar.xz
cryptodev-linux-9c0650117290c30b94e1c3513b67808fb5f7a143.zip
Drop unnecessary "file *" argument to ncr_ioctl()
-rw-r--r--cryptodev_main.c2
-rw-r--r--ncr-int.h3
-rw-r--r--ncr.c3
3 files changed, 3 insertions, 5 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c
index f3f1f08..0a20888 100644
--- a/cryptodev_main.c
+++ b/cryptodev_main.c
@@ -136,7 +136,7 @@ cryptodev_ioctl(struct inode *inode, struct file *filp,
if (unlikely(!ncr))
BUG();
- return ncr_ioctl(ncr, filp, cmd, arg);
+ return ncr_ioctl(ncr, cmd, arg);
}
/* compatibility code for 32bit userlands */
diff --git a/ncr-int.h b/ncr-int.h
index 4694cda..53df9df 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -104,8 +104,7 @@ struct ncr_lists {
void* ncr_init_lists(void);
void ncr_deinit_lists(struct ncr_lists *lst);
-int ncr_ioctl(struct ncr_lists*, struct file *filp,
- unsigned int cmd, unsigned long arg);
+int ncr_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg);
/* key derivation */
int ncr_key_derive(struct ncr_lists *lst, void __user* arg);
diff --git a/ncr.c b/ncr.c
index ec9998c..99d2786 100644
--- a/ncr.c
+++ b/ncr.c
@@ -116,8 +116,7 @@ struct ncr_master_key_st st;
}
int
-ncr_ioctl(struct ncr_lists* lst, struct file *filp,
- unsigned int cmd, unsigned long arg_)
+ncr_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg_)
{
void __user *arg = (void __user *)arg_;