plugins/amdgpu: remove unused variable

amdgpu_plugin_drm.c:167:6: error: variable 'num_bos' set but not used [-Werror,-Wunused-but-set-variable]
  167 |         int num_bos = 0;
      |

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov 2025-11-02 17:01:31 +00:00 committed by Andrei Vagin
parent 6ed49894c5
commit f56ccfd2d6

View file

@ -164,7 +164,6 @@ static int restore_bo_contents_drm(int drm_render_minor, CriuRenderNode *rd, int
FILE *bo_contents_fp = NULL;
void *buffer = NULL;
char img_path[40];
int num_bos = 0;
int i, ret = 0;
ret = amdgpu_device_initialize(drm_fd, &major, &minor, &h_dev);
@ -206,8 +205,6 @@ static int restore_bo_contents_drm(int drm_render_minor, CriuRenderNode *rd, int
if (rd->bo_entries[i]->num_of_vms == 0)
continue;
num_bos++;
snprintf(img_path, sizeof(img_path), IMG_DRM_PAGES_FILE, rd->id, drm_render_minor, i);
bo_contents_fp = open_img_file(img_path, false, &image_size);