aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2014-01-29 04:08:52 +0100
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:11:55 -0400
commit14ff9b6a31efa88745a1c1a5f963f0f1303a4588 (patch)
tree720b8171dc7e9fcbc8fdcd94bfb6657692bc7e7c
parent5e7f1d4195dd96fa1e8ffa4fcd3f7038b9a4714a (diff)
downloadlinux-yocto-14ff9b6a31efa88745a1c1a5f963f0f1303a4588.tar.gz
linux-yocto-14ff9b6a31efa88745a1c1a5f963f0f1303a4588.tar.bz2
linux-yocto-14ff9b6a31efa88745a1c1a5f963f0f1303a4588.zip
cryptodev: checkpatch
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--drivers/staging/crypto/cryptodev/cryptodev_int.h2
-rw-r--r--drivers/staging/crypto/cryptodev/ioctl.c32
-rw-r--r--drivers/staging/crypto/cryptodev/main.c4
3 files changed, 19 insertions, 19 deletions
diff --git a/drivers/staging/crypto/cryptodev/cryptodev_int.h b/drivers/staging/crypto/cryptodev/cryptodev_int.h
index c01e61965dbe..675b61821f2a 100644
--- a/drivers/staging/crypto/cryptodev/cryptodev_int.h
+++ b/drivers/staging/crypto/cryptodev/cryptodev_int.h
@@ -57,7 +57,7 @@ struct compat_session_op {
};
/* input of CIOCCRYPT */
- struct compat_crypt_op {
+struct compat_crypt_op {
uint32_t ses; /* session identifier */
uint16_t op; /* COP_ENCRYPT or COP_DECRYPT */
uint16_t flags; /* see COP_FLAG_* */
diff --git a/drivers/staging/crypto/cryptodev/ioctl.c b/drivers/staging/crypto/cryptodev/ioctl.c
index 8710913eaaad..aa287acc0fd6 100644
--- a/drivers/staging/crypto/cryptodev/ioctl.c
+++ b/drivers/staging/crypto/cryptodev/ioctl.c
@@ -957,7 +957,7 @@ static int compat_kcop_from_user(struct kernel_crypt_op *kcop,
}
static int compat_kcop_to_user(struct kernel_crypt_op *kcop,
- struct fcrypt *fcr, void __user *arg)
+ struct fcrypt *fcr, void __user *arg)
{
int ret;
struct compat_crypt_op compat_cop;
@@ -1102,23 +1102,23 @@ cryptodev_deregister(void)
/* ====== Module init/exit ====== */
static struct ctl_table verbosity_ctl_dir[] = {
- {
- .procname = "cryptodev_verbosity",
- .data = &cryptodev_verbosity,
- .maxlen = sizeof(int),
- .mode = 0644,
- .proc_handler = proc_dointvec,
- },
- {0, },
+ {
+ .procname = "cryptodev_verbosity",
+ .data = &cryptodev_verbosity,
+ .maxlen = sizeof(int),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {0, },
};
static struct ctl_table verbosity_ctl_root[] = {
- {
- .procname = "ioctl",
- .mode = 0555,
- .child = verbosity_ctl_dir,
- },
- {0, },
+ {
+ .procname = "ioctl",
+ .mode = 0555,
+ .child = verbosity_ctl_dir,
+ },
+ {0, },
};
static struct ctl_table_header *verbosity_sysctl_header;
static int __init init_cryptodev(void)
@@ -1150,7 +1150,7 @@ static void __exit exit_cryptodev(void)
destroy_workqueue(cryptodev_wq);
if (verbosity_sysctl_header)
- unregister_sysctl_table(verbosity_sysctl_header);
+ unregister_sysctl_table(verbosity_sysctl_header);
cryptodev_deregister();
printk(KERN_INFO PFX "driver unloaded.\n");
diff --git a/drivers/staging/crypto/cryptodev/main.c b/drivers/staging/crypto/cryptodev/main.c
index e25776e8db64..4617e723768e 100644
--- a/drivers/staging/crypto/cryptodev/main.c
+++ b/drivers/staging/crypto/cryptodev/main.c
@@ -116,7 +116,7 @@ __crypto_run_std(struct csession *ses_ptr, struct crypt_op *cop)
if (unlikely(!data)) {
dprintk(1, KERN_ERR, "Error getting free page.\n");
return -ENOMEM;
- }
+ }
bufsize = PAGE_SIZE < nbytes ? PAGE_SIZE : nbytes;
@@ -139,7 +139,7 @@ __crypto_run_std(struct csession *ses_ptr, struct crypt_op *cop)
if (unlikely(ret)) {
dprintk(1, KERN_ERR, "hash_n_crypt failed.\n");
break;
- }
+ }
if (ses_ptr->cdata.init != 0) {
if (unlikely(copy_to_user(dst, data, current_len))) {