disk: Use a helper function to reduce duplication
Reduce the duplicated code slightly by using a helper function to handle
the common code.
This reduces the code size very slightly.
Signed-off-by:
Simon Glass <sjg@chromium.org>
Loading
Reduce the duplicated code slightly by using a helper function to handle
the common code.
This reduces the code size very slightly.
Signed-off-by:
Simon Glass <sjg@chromium.org>