core: don't check if the pointer about to be freed is NULL
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 16 Dec 2022 14:06:54 +0000 (15:06 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Fri, 16 Dec 2022 14:06:54 +0000 (15:06 +0100)
commite0cd3345a442700676bcae204c03ff6740541982
tree6448632e5bf2325c67bbb39032457c601f94ecda
parenta6014a75a260e6047912950756065f7aaeb43f13
core: don't check if the pointer about to be freed is NULL

Unless we dereference it before passing it to free(), we don't need to
care whether the pointer is NULL - free() can handle it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
lib/chip-info.c
lib/edge-event.c
lib/line-info.c
lib/request-config.c