Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
elFarto committed Feb 3, 2024
1 parent 9516309 commit a45b603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/direct/nv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a45b603

Please sign in to comment.