diff options
author | Simon Horman <[email protected]> | 2023-04-04 14:44:53 +0200 |
---|---|---|
committer | Mathieu Poirier <[email protected]> | 2023-04-05 10:57:49 -0600 |
commit | 3a87fc6f68128d31a77c03887185dbd75ed0f62a (patch) | |
tree | c381ecf588ea53df16fd694614e4ba05b64610e7 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 96af01cdc34a39f04118b2c0f3a4c0c52bd7f973 (diff) |
remoteproc: pru: Remove always true check positive unsigned value
In both cases the type of da is u32. And PRU_PDRAM_DA is 0.
So the check da >= PRU_PDRAM_DA is always true and can be removed.
Flagged by Smatch:
drivers/remoteproc/pru_rproc.c:660 pru_d_da_to_va() warn: always true condition '(da >= 0) => (0-u32max >= 0)'
drivers/remoteproc/pru_rproc.c:709 pru_i_da_to_va() warn: always true condition '(da >= 0) => (0-u32max >= 0)'
No functional changes intended.
Compile tested only.
Reported-by: kernel test robot <[email protected]>
Link: https://www.spinics.net/lists/kernel/msg4025983.html
Signed-off-by: Simon Horman <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[Fixed typo in changelog]
Signed-off-by: Mathieu Poirier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions