On Thu, Nov 28, 2024 at 16:28:10 +0300, Alexander Kuznetsov wrote: > This function return value is invariant since 18f3771, so change > its type and remove all dependent checks. > > Found by Linux Verification Center (linuxtesting.org) with Svace. > > Reported-by: Pavel Nekrasov <p.nekrasov@xxxxxxxxxxx> > Signed-off-by: Alexander Kuznetsov <kuznetsovam@xxxxxxxxxxxx> > --- > src/logging/log_daemon.c | 8 ++------ > src/logging/log_daemon_config.c | 4 +--- > src/logging/log_daemon_config.h | 2 +- > 3 files changed, 4 insertions(+), 10 deletions(-) Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>