diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2016-12-18 04:27:24 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-12-30 15:56:07 +0200 |
commit | 26eb994d52399a4767be30ccc2a7d68a0f34cadc (patch) | |
tree | 1b7a891c264f51b6748839c501c80513ae580cc4 /drivers/net/wireless/realtek/rtlwifi | |
parent | c93ac39da006457fc5b9b74f1505624dd509bf68 (diff) | |
download | op-kernel-dev-26eb994d52399a4767be30ccc2a7d68a0f34cadc.zip op-kernel-dev-26eb994d52399a4767be30ccc2a7d68a0f34cadc.tar.gz |
libertas: constify cfg80211_ops structures
cfg80211_ops structures are only passed as an argument to the function
wiphy_new. This argument is of type const, so cfg80211_ops strutures
having this property can be declared as const.
Done using Coccinelle
@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct cfg80211_ops i@p = {...};
@ok1@
identifier r1.i;
position p;
@@
wiphy_new(&i@p,...)
@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct cfg80211_ops i;
File size before:
text data bss dec hex filename
21225 1954 16 23195 5a9b wireless/marvell/libertas/cfg.o
File size after:
text data bss dec hex filename
22041 1154 16 23211 5aab wireless/marvell/libertas/cfg.o
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi')
0 files changed, 0 insertions, 0 deletions