aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtlwifi
diff options
context:
space:
mode:
authorFrank A. Cancio Bello <frank@generalsoftwareinc.com>2017-10-17 23:30:20 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-18 15:33:15 +0200
commit85d007756f7e284da9e2e043b15d9a5cca5fb429 (patch)
treed852d50c0d7dc7902373cf2024d60b8c070a5a87 /drivers/staging/rtlwifi
parentstaging: rtl8822be: Keep array subscript no lower than zero (diff)
downloadlinux-dev-85d007756f7e284da9e2e043b15d9a5cca5fb429.tar.xz
linux-dev-85d007756f7e284da9e2e043b15d9a5cca5fb429.zip
staging: rtlwifi: rtl8822be: Balance braces in else statement
Add braces to else statements to comply with section 3) of 'Linux kernel coding style' and avoid the following checkpatch message: 'CHECK: Unbalanced braces around else statement' Credits to checkpatch. Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtlwifi')
-rw-r--r--drivers/staging/rtlwifi/rtl8822be/fw.c3
-rw-r--r--drivers/staging/rtlwifi/rtl8822be/phy.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/rtlwifi/rtl8822be/fw.c b/drivers/staging/rtlwifi/rtl8822be/fw.c
index 8e24da16752c..02f5004a9a0c 100644
--- a/drivers/staging/rtlwifi/rtl8822be/fw.c
+++ b/drivers/staging/rtlwifi/rtl8822be/fw.c
@@ -766,9 +766,10 @@ void rtl8822be_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, bool b_dl_finished)
rtl8822be_fill_h2c_cmd(hw, H2C_8822B_RSVDPAGE,
sizeof(u1_rsvd_page_loc),
u1_rsvd_page_loc);
- } else
+ } else {
RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING,
"Set RSVD page location to Fw FAIL!!!!!!.\n");
+ }
}
/* Should check FW support p2p or not. */
diff --git a/drivers/staging/rtlwifi/rtl8822be/phy.c b/drivers/staging/rtlwifi/rtl8822be/phy.c
index 921226bd687b..589ef1584a8f 100644
--- a/drivers/staging/rtlwifi/rtl8822be/phy.c
+++ b/drivers/staging/rtlwifi/rtl8822be/phy.c
@@ -1562,9 +1562,10 @@ static char _rtl8822be_phy_get_txpower_limit(struct ieee80211_hw *hw, u8 band,
[channel_index]
[rate_section]
[channel_index][rf_path];
- } else
+ } else {
RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD,
"No power limit table of the specified band\n");
+ }
return power_limit;
}