Staging: csr: data_tx: fix up brace placement
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 05:58:40 +0000 (14:58 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 20:48:04 +0000 (13:48 -0700)
This cleans up the brace placement coding issues.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/data_tx.c

index d2c29545058e8258a18f2fa40d1a6ccc7e3ba5e6..878f59f06e21f645007e457626b43b668773f1cb 100644 (file)
@@ -22,9 +22,8 @@ uf_verify_m4(unifi_priv_t *priv, const unsigned char *packet, unsigned int lengt
        u16 keyinfo;
 
 
-       if (length < (4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1 + 8)) {
+       if (length < (4 + 5 + 8 + 32 + 16 + 8 + 8 + 16 + 1 + 8))
                return 1;
-       }
 
        p += 8;
        keyinfo = p[5] << 8 | p[6]; /* big-endian */
@@ -40,9 +39,7 @@ uf_verify_m4(unifi_priv_t *priv, const unsigned char *packet, unsigned int lengt
        ) {
                unifi_trace(priv, UDBG1, "uf_verify_m4: M4 detected \n");
                return 0;
-       }
-       else
-       {
+       } else {
                return 1;
        }
 }