mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
net: rfkill: fixes the warning with gcc-7.2 build
when used the arm-linux-gnueabihf-gcc-7.2.1, had the below warning information: net/rfkill/rfkill-bt.c:711:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] error, forbidden warning Change-Id: I7834078bb731e1115f6e8328a56158b0d9f2991e Signed-off-by: Caesar Wang <wxt@rock-chips.com>
This commit is contained in:
@@ -709,7 +709,7 @@ static int rfkill_rk_remove(struct platform_device *pdev)
|
||||
gpio_free(rfkill->pdata->reset_gpio.io);
|
||||
|
||||
if (gpio_is_valid(rfkill->pdata->poweron_gpio.io))
|
||||
gpio_free(rfkill->pdata->poweron_gpio.io);
|
||||
gpio_free(rfkill->pdata->poweron_gpio.io);
|
||||
clk_disable_unprepare(rfkill->pdata->ext_clk);
|
||||
g_rfkill = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user