From 82ca61b38a0cbddb35314f5bb2f12f5bab3bc9aa Mon Sep 17 00:00:00 2001 From: Michal Suchanek Date: Mon, 25 Dec 2023 19:31:52 +0100 Subject: [PATCH] sysfs: remove unused variable Fixes: e5e053bb ("libsensors: Avoid non-symlink sysfs device entries") Signed-off-by: Michal Suchanek --- lib/sysfs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/sysfs.c b/lib/sysfs.c index 3aa939a0..c6bbb2c8 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -752,7 +752,6 @@ static char* realpath_no_symlink(const char *restrict path, char *restrict resolved_path) { struct stat st; - int ret; if (lstat(path, &st) < 0) return NULL;