dm: core: Adjust dump-sorting to get stats only when needed
If we are not sorting the tree we don't need to get the stats. Adjust the
code to avoid the wasted time.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Please register or sign in to comment