remoteproc: qcom: hexagon: Clean up mpss validation
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 13 Jul 2016 00:15:45 +0000 (17:15 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 15 Jul 2016 03:11:36 +0000 (20:11 -0700)
commit72beb49070463147e29d4aea6aca9ec5684138e9
treee3f846346a794ab268a9c16415411f0be5dd16ec
parentb1653f23ea464b60445ee0d7cf569b3ed6fa3f0b
remoteproc: qcom: hexagon: Clean up mpss validation

As reported by Dan the unsigned "val" can't be negative. But instead
correcting the check for early errors here followed by a wait for the
validation result to show the error or success we can consolidate these
two parts of the validation process into the validation function.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_pil.c