aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2019-04-25 22:58:24 -0400
committerZhiyong Yang <zhiyong.yang@intel.com>2019-04-25 22:58:50 -0400
commit403e3ba1507750df463d7179494c14d03864b810 (patch)
tree0472db0a60050364b58e974c83dc0f0ccb59c63f /src
parent82d81d4fb0509236d10fe5de8bc2d4d26d6730b6 (diff)
crypto_ia32: minor change logically
"break;" will never be run after "return;" Change-Id: I4fdfd10406fdf61897078746d28fa1ee32fb0081 Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/crypto_ia32/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/crypto_ia32/main.c b/src/plugins/crypto_ia32/main.c
index 8dd596b0dd6..f8e4e175699 100644
--- a/src/plugins/crypto_ia32/main.c
+++ b/src/plugins/crypto_ia32/main.c
@@ -39,7 +39,6 @@ crypto_ia32_key_handler (vlib_main_t * vm, vnet_crypto_key_op_t kop,
break;
default:
return;
- break;
}
if (kop == VNET_CRYPTO_KEY_OP_DEL)
@@ -88,9 +87,9 @@ crypto_ia32_key_handler (vlib_main_t * vm, vnet_crypto_key_op_t kop,
aes_key_enc_to_dec (kd->decrypt_key, AESNI_KEY_256);
break;
default:
- return;
break;
}
+ return;
}
clib_error_t *