diff options
author | Tzung-Bi Shih <[email protected]> | 2020-11-16 16:44:12 +0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2020-11-20 21:45:42 -0600 |
commit | 48cb5b6829e2acb4b600153142889f879115e172 (patch) | |
tree | 469749b0b48f548f2dffa6c5b361be656e425d6d /net/switchdev/switchdev.c | |
parent | 71ffb5a22b49ad1c6266aad237cf8f1f5b13fe9a (diff) |
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 <[email protected]>
Signed-off-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions