[v2,08/14] examples/vhost: fix whitespace

Message ID 20221109195331.143473-9-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series whitespace after keywords |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Nov. 9, 2022, 7:53 p.m. UTC
  Add space after keywords.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 examples/vhost/main.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
  

Patch

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index 42e53a0f9a4f..9fee966916e9 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -1491,7 +1491,7 @@  switch_worker(void *arg __rte_unused)
 		}
 	}
 
-	while(1) {
+	while (1) {
 		drain_mbuf_table(tx_q);
 		drain_vhost_table();
 		/*
@@ -1583,9 +1583,8 @@  destroy_device(int vid)
 		return;
 	/*set the remove flag. */
 	vdev->remove = 1;
-	while(vdev->ready != DEVICE_SAFE_REMOVE) {
+	while (vdev->ready != DEVICE_SAFE_REMOVE)
 		rte_pause();
-	}
 
 	for (i = 0; i < RTE_MAX_LCORE; i++)
 		rte_free(vhost_txbuff[i * RTE_MAX_VHOST_DEVICE + vid]);
@@ -1816,7 +1815,7 @@  print_stats(__rte_unused void *arg)
 	const char clr[] = { 27, '[', '2', 'J', '\0' };
 	const char top_left[] = { 27, '[', '1', ';', '1', 'H','\0' };
 
-	while(1) {
+	while (1) {
 		sleep(enable_stats);
 
 		/* Clear screen and move to top left */