diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-13 12:16:20 -0700 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2016-09-19 16:28:22 -0700 |
commit | eeac0a878829e15b86429b164244ac18a740633d (patch) | |
tree | 64d621abf4b30bc7df64d48fa40ff805d9532daa /drivers | |
parent | 21b6657ef4458f90d64b696105e3898257dea221 (diff) | |
download | op-kernel-dev-eeac0a878829e15b86429b164244ac18a740633d.zip op-kernel-dev-eeac0a878829e15b86429b164244ac18a740633d.tar.gz |
remoteproc: Drop unnecessary NULL check
rproc_alloc() will make sure that the "firmware" pointer is either a
driver supplied value or pointing to a generated firmware filename, it
can't be NULL. So drop the extra check in the rproc_boot() path.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/remoteproc/remoteproc_core.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c index 0d3c191..92a1037 100644 --- a/drivers/remoteproc/remoteproc_core.c +++ b/drivers/remoteproc/remoteproc_core.c @@ -1034,13 +1034,6 @@ static int __rproc_boot(struct rproc *rproc, bool wait) return ret; } - /* loading a firmware is required */ - if (!rproc->firmware) { - dev_err(dev, "%s: no firmware to load\n", __func__); - ret = -EINVAL; - goto unlock_mutex; - } - /* prevent underlying implementation from being removed */ if (!try_module_get(dev->parent->driver->owner)) { dev_err(dev, "%s: can't get owner\n", __func__); |