From: Greg Kroah-Hartman Date: Fri, 12 Oct 2012 05:58:40 +0000 (+0900) Subject: Staging: csr: data_tx: fix up brace placement X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dbff11c9d35ebd41268cf5137e0619509effd461;p=linux-beck.git Staging: csr: data_tx: fix up brace placement This cleans up the brace placement coding issues. Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/csr/data_tx.c b/drivers/staging/csr/data_tx.c index d2c29545058e..878f59f06e21 100644 --- a/drivers/staging/csr/data_tx.c +++ b/drivers/staging/csr/data_tx.c @@ -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; } }