edac: shell: Use helper functions for shell devmem command Using helper functions decreases function complexity numbers reported by static code analyzers. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>