Tidy up error checking and fix bug in hash command
authorSimon Glass <sjg@chromium.org>
Sun, 24 Feb 2013 17:33:11 +0000 (17:33 +0000)
committerSimon Glass <sjg@chromium.org>
Fri, 1 Mar 2013 03:09:21 +0000 (19:09 -0800)
commit6b3ff98da41a084658877282057adeb59ff6e9f2
tree6bf3d26a57cb2176824143f71fd9397e2f68c951
parent8ec21bbe5c45fc80ca74eb403ab5b00a9e1f699f
Tidy up error checking and fix bug in hash command

There are two problems:

1. The argument count needs to be checked before argv is used
2. When verify is not enabled, we need to define a constant zero value

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_hash.c