[U-Boot] [PATCH 01/20] Tidy up error checking and fix bug in hash command