File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ static int qxl_process_single_command(struct qxl_device *qdev,
145
145
struct qxl_release * release ;
146
146
struct qxl_bo * cmd_bo ;
147
147
void * fb_cmd ;
148
- int i , ret , num_relocs ;
148
+ int i , ret ;
149
149
int unwritten ;
150
150
151
151
switch (cmd -> type ) {
@@ -200,7 +200,6 @@ static int qxl_process_single_command(struct qxl_device *qdev,
200
200
}
201
201
202
202
/* fill out reloc info structs */
203
- num_relocs = 0 ;
204
203
for (i = 0 ; i < cmd -> relocs_num ; ++ i ) {
205
204
struct drm_qxl_reloc reloc ;
206
205
struct drm_qxl_reloc __user * u = u64_to_user_ptr (cmd -> relocs );
@@ -230,7 +229,6 @@ static int qxl_process_single_command(struct qxl_device *qdev,
230
229
reloc_info [i ].dst_bo = cmd_bo ;
231
230
reloc_info [i ].dst_offset = reloc .dst_offset + release -> release_offset ;
232
231
}
233
- num_relocs ++ ;
234
232
235
233
/* reserve and validate the reloc dst bo */
236
234
if (reloc .reloc_type == QXL_RELOC_TYPE_BO || reloc .src_handle ) {
You can’t perform that action at this time.
0 commit comments