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:
Caesar Wang 2017-12-13 21:01:01 +08:00 committed by Tao Huang
parent a9b598724b
commit cd8c778456

View File

@ -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;