summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-02 13:40:29 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-09-06 15:26:18 +0200
commitd900ff291ef38ae958fea05df77212abfe4206ae (patch)
tree1def51b39aa0332e3c55155855f3c3f357a1cd76
parenta73b8cf29e6f6bd4d32da5856f482790624b4724 (diff)
downloadkernel-crypto-d900ff291ef38ae958fea05df77212abfe4206ae.tar.gz
kernel-crypto-d900ff291ef38ae958fea05df77212abfe4206ae.tar.xz
kernel-crypto-d900ff291ef38ae958fea05df77212abfe4206ae.zip
Use the "ncr_lists *" type in cryptodev_main.c
-rw-r--r--crypto/userspace/cryptodev_main.c4
-rw-r--r--crypto/userspace/ncr-int.h2
-rw-r--r--crypto/userspace/ncr.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/crypto/userspace/cryptodev_main.c b/crypto/userspace/cryptodev_main.c
index 0cbe3c4bdc3..7afe74c0b18 100644
--- a/crypto/userspace/cryptodev_main.c
+++ b/crypto/userspace/cryptodev_main.c
@@ -102,7 +102,7 @@ int __get_userbuf(uint8_t __user *addr, uint32_t len, int write,
static int
cryptodev_open(struct inode *inode, struct file *filp)
{
- void *ncr;
+ struct ncr_lists *ncr;
ncr = ncr_init_lists();
if (ncr == NULL) {
@@ -116,7 +116,7 @@ cryptodev_open(struct inode *inode, struct file *filp)
static int
cryptodev_release(struct inode *inode, struct file *filp)
{
- void *ncr = filp->private_data;
+ struct ncr_lists *ncr = filp->private_data;
if (ncr) {
ncr_deinit_lists(ncr);
diff --git a/crypto/userspace/ncr-int.h b/crypto/userspace/ncr-int.h
index 60e2f080fff..3302edf4dc6 100644
--- a/crypto/userspace/ncr-int.h
+++ b/crypto/userspace/ncr-int.h
@@ -118,7 +118,7 @@ struct ncr_lists {
struct idr session_idr;
};
-void* ncr_init_lists(void);
+struct ncr_lists *ncr_init_lists(void);
void ncr_deinit_lists(struct ncr_lists *lst);
long ncr_ioctl(struct ncr_lists *lst, unsigned int cmd, unsigned long arg);
diff --git a/crypto/userspace/ncr.c b/crypto/userspace/ncr.c
index 57744396db8..01ad1703c58 100644
--- a/crypto/userspace/ncr.c
+++ b/crypto/userspace/ncr.c
@@ -47,7 +47,7 @@ struct key_item_st master_key;
static struct mutex lists_ida_mutex;
static DEFINE_IDA(lists_ida);
-void* ncr_init_lists(void)
+struct ncr_lists *ncr_init_lists(void)
{
struct ncr_lists *lst;