commit | 7318904ae1c015b1a959411d3391d6d159f26272 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Wed Nov 15 13:12:18 2017 +0200 |
committer | Johan Hedberg <johan.hedberg@gmail.com> | Wed Nov 15 16:04:39 2017 +0200 |
tree | 44bb9ba2c51ca902d26a1e62110f4553af99a956 | |
parent | 22b5ff9b298e866200dd414a120c40b7531f539b [diff] |
shell: Use struct shell_module instead of integer to refer to modules It's much more intuitive to read "if (module)" instead of "if (module != -1)" when checking for a valid module. Update the code to use struct shell_module pointers instead of integers for tracking modules. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>