[PATCH] remoteproc: qcom: hexagon: Clean up mpss validation

2016-07-12 Thread Bjorn Andersson
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

[PATCH] remoteproc: qcom: hexagon: Clean up mpss validation

2016-07-12 Thread Bjorn Andersson
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