diff options
author | Tzung-Bi Shih <tzungbi@google.com> | 2020-11-16 11:44:12 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-11-21 06:45:42 +0300 |
commit | 48cb5b6829e2acb4b600153142889f879115e172 (patch) | |
tree | 469749b0b48f548f2dffa6c5b361be656e425d6d /drivers/remoteproc/qcom_sysmon.c | |
parent | 71ffb5a22b49ad1c6266aad237cf8f1f5b13fe9a (diff) | |
download | linux-48cb5b6829e2acb4b600153142889f879115e172.tar.xz |
remoteproc/mediatek: skip if filesz is 0
The main purpose of the loop is to load the memory to the SCP SRAM.
If filesz is 0, can go to next program header directly.
We don't need to try to validate the FW binary for those filesz==0
segments.
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Link: https://lore.kernel.org/r/20201116084413.3312631-3-tzungbi@google.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/remoteproc/qcom_sysmon.c')
0 files changed, 0 insertions, 0 deletions