mmc-utils: correct and clean up the file handling

Add the check if the whole firmware was loaded.  Cleaned up the leftovers
of handling the file in chunks.

Signed-off-by: Bruno Matic <bruno.matic@nokia.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20220909110322.25141-1-bruno.matic@nokia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 file changed