浏览代码

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 年之前
父节点
当前提交
32680d9319
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;
 			qos = 0;
 		else if (qos >= cvmx_pko_get_num_queues(priv->port))
 		else if (qos >= cvmx_pko_get_num_queues(priv->port))
 			qos = 0;
 			qos = 0;
-	} else
+	} else {
 		qos = 0;
 		qos = 0;
+	}
 
 
 	if (USE_ASYNC_IOBDMA) {
 	if (USE_ASYNC_IOBDMA) {
 		/* Save scratch in case userspace is using it */
 		/* Save scratch in case userspace is using it */