Branch: refs/heads/main Home: https://github.com/OpenAMP/libmetal Commit: fdc85ec742a03dc401167df4bffa49cae6ec8db5 https://github.com/OpenAMP/libmetal/commit/fdc85ec742a03dc401167df4bffa49cae... Author: Fox Feng foxhoundsk.tw@gmail.com Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths: M lib/system/linux/device.c
Log Message: ----------- lib: system: linux: Remove redundant memory validness check
In the function prologue, "ldev" has already been assigned a malloc'd address, and a check has also been performed. Remove this redundant pointer validness check during each iteration. The second check was also inherently misplaced because the it was not enclosed in the malloc if-branch.
Signed-off-by: Fox Feng foxhoundsk.tw@gmail.com Signed-off-by: Huichun Feng foxhoundsk.tw@gmail.com
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications