Skip to content
Commit 3a87fc6f authored by Simon Horman's avatar Simon Horman Committed by Mathieu Poirier
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Link: https://www.spinics.net/lists/kernel/msg4025983.html


Signed-off-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Link: https://lore.kernel.org/r/20230404-pru-always-true-v1-1-b1b55eeff188@kernel.org


[Fixed typo in changelog]
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 96af01cd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment