remoteproc: Restructure firmware name allocation
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 20 Apr 2020 23:15:59 +0000 (17:15 -0600)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 21 Apr 2020 02:29:46 +0000 (19:29 -0700)
commit9d5f82c8ba2471e34150a0e750ef54089e2a3740
treeb33e380bc3d8b226d8ea1a876d546f25b7316664
parent1487deda19c82d30d1867277e89bc2d515b9d2d4
remoteproc: Restructure firmware name allocation

Improve the readability of function rproc_alloc_firmware() by using
a non-negated condition and moving the comment out of the conditional
block

Suggested-by: Alex Elder <elder@linaro.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200420231601.16781-3-mathieu.poirier@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_core.c