mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
build: fix unused-result warnings
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
+6
-2
@@ -767,8 +767,12 @@ static void igt_module_param_exit_handler(int sig)
|
||||
|
||||
fd = open(file_path, O_RDWR);
|
||||
if (fd >= 0) {
|
||||
write(fd, data->original_value,
|
||||
strlen(data->original_value));
|
||||
int size = strlen (data->original_value);
|
||||
|
||||
if (size != write(fd, data->original_value, size))
|
||||
igt_warn("%s may not have been reset to its"
|
||||
" original value\n", file_path);
|
||||
|
||||
close(fd);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user