git: 8512311fb500 - main - ng_pipe: Fix whitespace

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 13:17:07 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=8512311fb5004444f43701eb122b6d77c76d7564

commit 8512311fb5004444f43701eb122b6d77c76d7564
Author:     Martin Vahlensieck <git@academicsolutions.ch>
AuthorDate: 2024-04-17 18:50:39 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-04-24 12:40:51 +0000

    ng_pipe: Fix whitespace
    
    Signed-off-by: Martin Vahlensieck <git@academicsolutions.ch>
    
    Reviewed by:    markj
    MFC after:      2 weeks
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1181
---
 sys/netgraph/ng_pipe.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/sys/netgraph/ng_pipe.c b/sys/netgraph/ng_pipe.c
index a2966c9a0349..c2424e3db48a 100644
--- a/sys/netgraph/ng_pipe.c
+++ b/sys/netgraph/ng_pipe.c
@@ -34,7 +34,7 @@
  * This node permits simple traffic shaping by emulating bandwidth
  * and delay, as well as random packet losses.
  * The node has two hooks, upper and lower. Traffic flowing from upper to
- * lower hook is referenced as downstream, and vice versa. Parameters for 
+ * lower hook is referenced as downstream, and vice versa. Parameters for
  * both directions can be set separately, except for delay.
  */
 
@@ -195,8 +195,8 @@ static const struct ng_cmdlist ngp_cmds[] = {
 	{
 		.cookie =	NGM_PIPE_COOKIE,
 		.cmd =		NGM_PIPE_GET_STATS,
-		.name = 	"getstats",
-		.respType =	 &ng_pipe_stats_type
+		.name =		"getstats",
+		.respType =	&ng_pipe_stats_type
 	},
 	{
 		.cookie =	NGM_PIPE_COOKIE,
@@ -494,7 +494,7 @@ parse_cfg(struct ng_pipe_hookcfg *current, struct ng_pipe_hookcfg *new,
 
 	if (new->qin_size_limit == -1)
 		current->qin_size_limit = 0;
-	else if (new->qin_size_limit >= 5) 
+	else if (new->qin_size_limit >= 5)
 		current->qin_size_limit = new->qin_size_limit;
 
 	if (new->qout_size_limit == -1)
@@ -547,7 +547,7 @@ parse_cfg(struct ng_pipe_hookcfg *current, struct ng_pipe_hookcfg *new,
 	} else if (new->bandwidth >= 100 && new->bandwidth <= 1000000000)
 		current->bandwidth = new->bandwidth;
 
-	if (current->bandwidth | priv->delay | 
+	if (current->bandwidth | priv->delay |
 	    current->duplicate | current->ber)
 		hinfo->noqueue = 0;
 	else
@@ -686,9 +686,9 @@ ngp_rcvdata(hook_p hook, item_p item)
 			}
 
 		/* Drop a frame from the queue head/tail, depending on cfg */
-		if (hinfo->cfg.drophead) 
+		if (hinfo->cfg.drophead)
 			ngp_h = TAILQ_FIRST(&ngp_f->packet_head);
-		else 
+		else
 			ngp_h = TAILQ_LAST(&ngp_f->packet_head, p_head);
 		TAILQ_REMOVE(&ngp_f->packet_head, ngp_h, ngp_link);
 		m1 = ngp_h->m;
@@ -783,7 +783,7 @@ pipe_dequeue(struct hookinfo *hinfo, struct timeval *now) {
 			hinfo->run.qin_octets -= m->m_pkthdr.len;
 			ngp_f->packets--;
 		}
-		
+
 		/* Calculate the serialization delay */
 		if (hinfo->cfg.bandwidth) {
 			hinfo->qin_utime.tv_usec +=