diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-07 08:00:51 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2017-08-08 14:53:08 +0300 |
commit | cb1b82625de7cbf30bb62672776c466615af84d2 (patch) | |
tree | 3329265a531892ef57e9a7f15a4aabb410f79a3e /drivers/net/wireless/realtek/rtlwifi/rc.c | |
parent | 4f2949febc22260f217e5459afef6c1b90bb049c (diff) | |
download | linux-cb1b82625de7cbf30bb62672776c466615af84d2.tar.xz |
rtlwifi: constify rate_control_ops structure
rate_control_ops structure is only passed as an argument to the
function ieee80211_rate_control_{register/unregister}. This argument
is of type const, so declare the structure as const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/rc.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/rc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rc.c b/drivers/net/wireless/realtek/rtlwifi/rc.c index 951d257cd4c0..02811eda57cd 100644 --- a/drivers/net/wireless/realtek/rtlwifi/rc.c +++ b/drivers/net/wireless/realtek/rtlwifi/rc.c @@ -283,7 +283,7 @@ static void rtl_rate_free_sta(void *rtlpriv, kfree(rate_priv); } -static struct rate_control_ops rtl_rate_ops = { +static const struct rate_control_ops rtl_rate_ops = { .name = "rtl_rc", .alloc = rtl_rate_alloc, .free = rtl_rate_free, |