From: Fan Zhang Date: Tue, 11 Dec 2018 15:09:51 +0000 (+0000) Subject: examples/vhost_crypto: fix bracket X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=57f9a9fc3c54aaae838698d846fb124836900c7a;p=dpdk.git examples/vhost_crypto: fix bracket This patch fixes a missed bracket bug in the code. Fixes: e1d90eaa83ff ("examples/vhost_crypto: fix zero copy") Cc: stable@dpdk.org Signed-off-by: Fan Zhang Reviewed-by: Maxime Coquelin --- diff --git a/examples/vhost_crypto/main.c b/examples/vhost_crypto/main.c index f08babd974..3deb5263fd 100644 --- a/examples/vhost_crypto/main.c +++ b/examples/vhost_crypto/main.c @@ -503,11 +503,12 @@ main(int argc, char *argv[]) if (strstr(dev_info.driver_name, RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_MB_PMD)) || strstr(dev_info.driver_name, - RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_GCM_PMD))) - RTE_LOG(ERR, USER1, "Cannot enable zero-copy in %s\n", + RTE_STR(VHOST_CRYPTO_CDEV_NAME_AESNI_GCM_PMD))) { + RTE_LOG(ERR, USER1, "Cannot enable zero-copy in %s\n", dev_info.driver_name); - ret = -EPERM; - goto error_exit; + ret = -EPERM; + goto error_exit; + } } if (dev_info.max_nb_queue_pairs < info->qid + 1) {