fix: doimage: fixed 'header only' mode

	- Before, running doimage with header only mode('-H 3' flag) always returned
	  error, even though there was no error, due to wrong initial value
	  to the error variable 'err'.
	  Also, Success message wasn't printed for header only mode.
	- Fixed initial value to 'err' varible (from 1 to 0)
	- Added success message to appear in header only mode.

Change-Id: If3607e6187d95fe2ad8c6b477ff2f76244088058
Signed-off-by: Bassel Saba <basselsa@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/23299
Reviewed-by: Omri Itach <omrii@marvell.com>
Tested-by: Omri Itach <omrii@marvell.com>
(cherry picked from commit 2c75a6ef0349ba620c763148becded1dd971facc)
Reviewed-on: http://vgitil04.il.marvell.com:8080/23656
Tested-by: Star_Automation <star@marvell.com>
1 file changed