Browse Source

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 <nevola@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Laura Garcia Liebana 9 years ago
parent
commit
32680d9319
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/staging/octeon/ethernet-tx.c

+ 2 - 1
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 */