Skip to content

Commit cd8c778

Browse files
Caesar-githubrkhuangtao
authored andcommitted
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>
1 parent a9b5987 commit cd8c778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rfkill/rfkill-bt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ static int rfkill_rk_remove(struct platform_device *pdev)
709709
gpio_free(rfkill->pdata->reset_gpio.io);
710710

711711
if (gpio_is_valid(rfkill->pdata->poweron_gpio.io))
712-
gpio_free(rfkill->pdata->poweron_gpio.io);
712+
gpio_free(rfkill->pdata->poweron_gpio.io);
713713
clk_disable_unprepare(rfkill->pdata->ext_clk);
714714
g_rfkill = NULL;
715715

0 commit comments

Comments
 (0)