examples/vhost_crypto: fix bracket
[dpdk.git] / examples / vhost_crypto / main.c
index f08babd..3deb526 100644 (file)
@@ -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) {