brcmfmac: remove unnecessary curly braces in dhd_attach()
authorArend van Spriel <arend@broadcom.com>
Wed, 2 Jan 2013 14:22:47 +0000 (15:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:57 +0000 (15:16 -0500)
Stumbled into a curly braces used for if statement with only
one conditional statement. Removing them.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c

index 9ca74118e131ece0acc3a47d3b51417c0ef40d51..285a70ee9350bb71a1c4131ca89f39d8f30dd2e6 100644 (file)
@@ -890,9 +890,8 @@ void brcmf_detach(struct device *dev)
 
        brcmf_bus_detach(drvr);
 
-       if (drvr->prot) {
+       if (drvr->prot)
                brcmf_proto_detach(drvr);
-       }
 
        brcmf_debugfs_detach(drvr);
        bus_if->drvr = NULL;