common/cmd_mtdparts.c: use proper return values for U-Boot command functions