diff options
author | Brian Behlendorf <[email protected]> | 2019-07-16 17:22:31 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-07-16 17:22:31 -0700 |
commit | 8062b7686aa2c3a22824b9a7c83cf01a5fa457a0 (patch) | |
tree | e7e316a0cdadec44f3d6bde7adaf917dccdd6370 /module/icp/algs/modes | |
parent | 3b03ff22761da0f5fad9a781025facfc6e555522 (diff) |
Minor style cleanup
Resolve an assortment of style inconsistencies including
use of white space, typos, capitalization, and line wrapping.
There is no functional change.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #9030
Diffstat (limited to 'module/icp/algs/modes')
-rw-r--r-- | module/icp/algs/modes/gcm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/module/icp/algs/modes/gcm.c b/module/icp/algs/modes/gcm.c index f6f8434de..423b70e2c 100644 --- a/module/icp/algs/modes/gcm.c +++ b/module/icp/algs/modes/gcm.c @@ -647,7 +647,7 @@ const gcm_impl_ops_t *gcm_all_impl[] = { /* Indicate that benchmark has been completed */ static boolean_t gcm_impl_initialized = B_FALSE; -/* Select aes implementation */ +/* Select GCM implementation */ #define IMPL_FASTEST (UINT32_MAX) #define IMPL_CYCLE (UINT32_MAX-1) @@ -724,13 +724,15 @@ gcm_impl_init(void *arg) * hardware accelerated version is the fastest. */ #if defined(__x86_64) && defined(HAVE_PCLMULQDQ) - if (gcm_pclmulqdq_impl.is_supported()) + if (gcm_pclmulqdq_impl.is_supported()) { memcpy(&gcm_fastest_impl, &gcm_pclmulqdq_impl, sizeof (gcm_fastest_impl)); - else + } else #endif + { memcpy(&gcm_fastest_impl, &gcm_generic_impl, sizeof (gcm_fastest_impl)); + } strcpy(gcm_fastest_impl.name, "fastest"); @@ -753,7 +755,7 @@ static const struct { * If we are called before init(), user preference will be saved in * user_sel_impl, and applied in later init() call. This occurs when module * parameter is specified on module load. Otherwise, directly update - * icp_aes_impl. + * icp_gcm_impl. * * @val Name of gcm implementation to use * @param Unused. |