diff options
author | Johannes Berg <johannes.berg@intel.com> | 2016-12-07 09:36:46 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-12-30 14:28:40 +0300 |
commit | ae3cf476450674dcba4239f144d310c472a08b5d (patch) | |
tree | ad0d64f9ba1b72229728ba204815fb260f24b2fb /tools/perf/scripts/python/sched-migration.py | |
parent | d7864cf2123503b83880d4b8d5786cb5641d64d8 (diff) | |
download | linux-ae3cf476450674dcba4239f144d310c472a08b5d.tar.xz |
iwlegacy: make il3945_mac_ops __ro_after_init
There's no need for this to be only __read_mostly, since
it's only written in a single way depending on the module
parameter, so that can be moved into the module's __init
function, and the ops can be __ro_after_init.
This is a little bit safer since it means the ops can't
be overwritten (accidentally or otherwise), which would
otherwise cause an arbitrary function or bad pointer to
be called.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions