Re: [PATCH] remoteproc: elf_loader: redundant check remove

2024-10-14 Thread Bjorn Andersson
On Sun, Oct 13, 2024 at 10:48:20PM GMT, anish kumar wrote: > offset will always be positive number and adding > and comparing to the same variable 'size' will > always result in check being false always. > Remove this superfluous check. > What if offset + size overflows? Regards, Bjorn > Signed

[PATCH] remoteproc: elf_loader: redundant check remove

2024-10-13 Thread anish kumar
offset will always be positive number and adding and comparing to the same variable 'size' will always result in check being false always. Remove this superfluous check. Signed-off-by: anish kumar --- drivers/remoteproc/remoteproc_elf_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-