]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: octeon: Fix braces in condition statement
authorLaura Garcia Liebana <nevola@gmail.com>
Sat, 27 Feb 2016 23:47:09 +0000 (00:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
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>
drivers/staging/octeon/ethernet-tx.c

index aecf1a06852141b76816e51b14f978d2d3da860a..ffe9bd77a7bbf841a5d299b9643d3bae50a2f214 100644 (file)
@@ -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 */