]> git.dujemihanovic.xyz Git - u-boot.git/commit
part: Give several functions more useful return values
authorSean Anderson <sean.anderson@seco.com>
Fri, 5 Feb 2021 14:38:55 +0000 (09:38 -0500)
committerMarek Vasut <marex@denx.de>
Fri, 26 Feb 2021 14:30:55 +0000 (15:30 +0100)
commit59715754e1d1d9279f38d70df1c3c2949a5e5203
treeab8726d8a56e72bf10dd9289548e4d7f96bb46f8
parentd4f22cb39e92ebfce74003b5779d6d6addc797e2
part: Give several functions more useful return values

Several functions in disk/part.c just return -1 on error. This makes them
return different errnos for different failures. This helps callers
differentiate between failures, even if they cannot read stdout.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
disk/part.c