From: Chaehyun Lim Date: Fri, 2 Oct 2015 07:41:13 +0000 (+0900) Subject: staging: wilc1000: fix indentation level X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c2eda352d046b3bd48d7916da9b2bfefbddffacf;p=linux-beck.git staging: wilc1000: fix indentation level This patch removes unnecessary block braces and fix indentation. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 50631c500e2c..f6a628719fd5 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -1879,28 +1879,26 @@ static void __exit exit_wilc_driver(void) } } - { - #ifndef WILC_SDIO - PRINT_D(INIT_DBG, "SPI unregsiter...\n"); - spi_unregister_driver(&wilc_bus); - #else - PRINT_D(INIT_DBG, "SDIO unregsiter...\n"); - sdio_unregister_driver(&wilc_bus); - #endif +#ifndef WILC_SDIO + PRINT_D(INIT_DBG, "SPI unregsiter...\n"); + spi_unregister_driver(&wilc_bus); +#else + PRINT_D(INIT_DBG, "SDIO unregsiter...\n"); + sdio_unregister_driver(&wilc_bus); +#endif - if (g_linux_wlan != NULL) { - kfree(g_linux_wlan); - g_linux_wlan = NULL; - } - printk("Module_exit Done.\n"); + if (g_linux_wlan != NULL) { + kfree(g_linux_wlan); + g_linux_wlan = NULL; + } + printk("Module_exit Done.\n"); #if defined(WILC_DEBUGFS) - wilc_debugfs_remove(); + wilc_debugfs_remove(); #endif - linux_wlan_device_detection(0); - linux_wlan_device_power(0); - } + linux_wlan_device_detection(0); + linux_wlan_device_power(0); } module_exit(exit_wilc_driver);