staging: ks7010: Remove braces around single statement
authorNishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
Wed, 14 Mar 2018 18:29:30 +0000 (18:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2018 16:14:40 +0000 (17:14 +0100)
Remove braces around single statement. Issue found with checkpatch.

Signed-off-by: Nishka Dasgupta <nishka.dasgupta_ug18@ashoka.edu.in>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c

index 05f7be4..c05102d 100644 (file)
@@ -1385,9 +1385,8 @@ static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
 {
        u16 capability = 0x0000;
 
-       if (priv->reg.preamble == SHORT_PREAMBLE) {
+       if (priv->reg.preamble == SHORT_PREAMBLE)
                capability |= WLAN_CAPABILITY_SHORT_PREAMBLE;
-       }
 
        capability &= ~(WLAN_CAPABILITY_PBCC);  /* pbcc not support */