From f56ee62857576a90a3f2c66f66b324884940fcb7 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 17 Jun 2010 11:46:00 +0200 Subject: crypto_op_to_*: fix typo into the correct direction As these functions only exist to convert from one data structure into the other, their names should stick to the structure names for clarity. --- cryptodev_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cryptodev_main.c') diff --git a/cryptodev_main.c b/cryptodev_main.c index 291627f..d016931 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -603,7 +603,7 @@ session_op_to_compat(struct session_op *sop, struct compat_session_op *compat) } static inline void -compat_to_crypto_op(struct compat_crypt_op *compat, struct crypt_op *cop) +compat_to_crypt_op(struct compat_crypt_op *compat, struct crypt_op *cop) { memcpy(cop, compat, sizeof(uint32_t) * 2 + sizeof(uint16_t) * 2); cop->src = (uint8_t *)(unsigned long)compat->src; @@ -613,7 +613,7 @@ compat_to_crypto_op(struct compat_crypt_op *compat, struct crypt_op *cop) } static inline void -crypto_op_to_compat(struct crypt_op *cop, struct compat_crypt_op *compat) +crypt_op_to_compat(struct crypt_op *cop, struct compat_crypt_op *compat) { memcpy(compat, cop, sizeof(uint32_t) * 2 + sizeof(uint16_t) * 2); compat->src = (unsigned long)cop->src; @@ -658,13 +658,13 @@ cryptodev_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg) case COMPAT_CIOCCRYPT: copy_from_user(&compat_cop, (void*)arg, sizeof(compat_cop)); - compat_to_crypto_op(&compat_cop, &cop); + compat_to_crypt_op(&compat_cop, &cop); ret = crypto_run(fcr, &cop); if (unlikely(ret)) return ret; - crypto_op_to_compat(&cop, &compat_cop); + crypt_op_to_compat(&cop, &compat_cop); copy_to_user((void*)arg, &compat_cop, sizeof(compat_cop)); return 0; -- cgit