commit | 61cc393b7423e711b838665f1a32de6c28a386de | [log] [tgz] |
---|---|---|
author | Dustin Brown <dustinb@codeaurora.org> | Thu Oct 18 16:12:13 2018 -0700 |
committer | nshrivas <nshrivas@codeaurora.org> | Fri Oct 19 16:53:14 2018 -0700 |
tree | f037acdd0ca1cadeae88d0abf39edf99763c876f | |
parent | a2deeb7047274e4471303b4c893cda03fe0b9add [diff] |
qcacld-3.0: Convert open adapters to vtable map Using a switch case as a method for mapping an enumerated value to a handler function has the down side of allowing future changes to pollute the switch case with additional logic. It also tends to lead to high cyclomatic complexity. Avoid these issues in hdd_open_adapters_for_mode by converting the switch case to a vtable. Change-Id: If91cbaf1e0ed561122b599550f3c450ec47eda31 CRs-Fixed: 2335970