From: Laura Garcia Liebana Date: Sat, 27 Feb 2016 23:47:09 +0000 (+0100) Subject: staging: octeon: Fix braces in condition statement X-Git-Tag: v4.6-rc1~103^2~184 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=32680d9319ad7ee75fb6d8068d7a3721fbae826c;p=karo-tx-linux.git 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 --- 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 */