From a45b6034a1ca93fec498f465cb6cb891a4d8e92a Mon Sep 17 00:00:00 2001 From: Stephen Date: Sat, 3 Feb 2024 11:13:24 +0000 Subject: [PATCH] removed unused variable --- src/direct/nv-driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/direct/nv-driver.c b/src/direct/nv-driver.c index 5aac3d0..073027b 100644 --- a/src/direct/nv-driver.c +++ b/src/direct/nv-driver.c @@ -175,7 +175,7 @@ static bool nv_get_versions(const int fd, char **versionString) { .cmd = '0' //query }; - const int ret = ioctl(fd, _IOC(_IOC_READ|_IOC_WRITE, NV_IOCTL_MAGIC, NV_ESC_CHECK_VERSION_STR, sizeof(obj)), &obj); + ioctl(fd, _IOC(_IOC_READ|_IOC_WRITE, NV_IOCTL_MAGIC, NV_ESC_CHECK_VERSION_STR, sizeof(obj)), &obj); *versionString = strdup(obj.versionString);