From c2eda352d046b3bd48d7916da9b2bfefbddffacf Mon Sep 17 00:00:00 2001 From: Chaehyun Lim Date: Fri, 2 Oct 2015 16:41:13 +0900 Subject: [PATCH] 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 --- drivers/staging/wilc1000/linux_wlan.c | 32 +++++++++++++-------------- 1 file changed, 15 insertions(+), 17 deletions(-) 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); -- 2.30.2