From 32680d9319ad7ee75fb6d8068d7a3721fbae826c Mon Sep 17 00:00:00 2001 From: Laura Garcia Liebana Date: Sun, 28 Feb 2016 00:47:09 +0100 Subject: [PATCH] staging: octeon: Fix braces in condition statement Braces should be used on all arms of the if statement. Checkpatch detected this issue. Signed-off-by: Laura Garcia Liebana Signed-off-by: Greg Kroah-Hartman --- drivers/staging/octeon/ethernet-tx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/octeon/ethernet-tx.c b/drivers/staging/octeon/ethernet-tx.c index aecf1a068521..ffe9bd77a7bb 100644 --- a/drivers/staging/octeon/ethernet-tx.c +++ b/drivers/staging/octeon/ethernet-tx.c @@ -174,8 +174,9 @@ int cvm_oct_xmit(struct sk_buff *skb, struct net_device *dev) qos = 0; else if (qos >= cvmx_pko_get_num_queues(priv->port)) qos = 0; - } else + } else { qos = 0; + } if (USE_ASYNC_IOBDMA) { /* Save scratch in case userspace is using it */ -- 2.39.5