]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wilc1000: rename goto to avoid leading '_' in label name
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 18 Jul 2018 22:45:01 +0000 (04:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:04:47 +0000 (09:04 +0200)
Cleanup patch to avoid use of leading '_' in goto label name. Also used
proper string for lable names.

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

index f90b9b68e9e003f6b7a4074a194804edf83eff42..73606c3d840f701578c93406769b85c3e45cde07 100644 (file)
@@ -2196,11 +2196,11 @@ static struct wireless_dev *wilc_wfi_cfg_alloc(void)
 
        wdev = kzalloc(sizeof(*wdev), GFP_KERNEL);
        if (!wdev)
-               goto _fail_;
+               goto out;
 
        wdev->wiphy = wiphy_new(&wilc_cfg80211_ops, sizeof(struct wilc_priv));
        if (!wdev->wiphy)
-               goto _fail_mem_;
+               goto free_mem;
 
        wilc_band_2ghz.ht_cap.ht_supported = 1;
        wilc_band_2ghz.ht_cap.cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT);
@@ -2212,9 +2212,9 @@ static struct wireless_dev *wilc_wfi_cfg_alloc(void)
 
        return wdev;
 
-_fail_mem_:
+free_mem:
        kfree(wdev);
-_fail_:
+out:
        return NULL;
 }
 
index 85af36595e6954c5df21250632c2a10095f5805b..8e71c282ecda97353c45608f1b0481ca3f72e164 100644 (file)
@@ -850,13 +850,13 @@ static void wilc_wlan_handle_isr_ext(struct wilc *wilc, u32 int_status)
                if (wilc->rx_buffer)
                        buffer = &wilc->rx_buffer[offset];
                else
-                       goto _end_;
+                       goto end;
 
                wilc->hif_func->hif_clear_int_ext(wilc,
                                              DATA_INT_CLR | ENABLE_RX_VMM);
                ret = wilc->hif_func->hif_block_rx_ext(wilc, 0, buffer, size);
 
-_end_:
+end:
                if (ret) {
                        offset += size;
                        wilc->rx_buffer_offset = offset;