staging: wilc1000: remove unnecessary bracket used in switch in wilc_mgmt_frame_regis...
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 2 May 2018 07:13:30 +0000 (12:43 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 May 2018 20:56:34 +0000 (13:56 -0700)
Cleanup patch to remove the curly braces used in 'case' statement to follow as
per linux standard.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 25364d3..af9bbad 100644 (file)
@@ -1741,24 +1741,18 @@ void wilc_mgmt_frame_register(struct wiphy *wiphy, struct wireless_dev *wdev,
 
        switch (frame_type) {
        case PROBE_REQ:
-       {
                vif->frame_reg[0].type = frame_type;
                vif->frame_reg[0].reg = reg;
-       }
-       break;
+               break;
 
        case ACTION:
-       {
                vif->frame_reg[1].type = frame_type;
                vif->frame_reg[1].reg = reg;
-       }
-       break;
+               break;
 
        default:
-       {
                break;
        }
-       }
 
        if (!wl->initialized)
                return;