File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,6 @@ static void ggtt_node_remove(struct xe_ggtt_node *node)
286
286
bool bound ;
287
287
int idx ;
288
288
289
- if (!node || !node -> ggtt )
290
- return ;
291
-
292
289
bound = drm_dev_enter (& xe -> drm , & idx );
293
290
294
291
mutex_lock (& ggtt -> lock );
@@ -328,8 +325,14 @@ static void ggtt_node_remove_work_func(struct work_struct *work)
328
325
*/
329
326
void xe_ggtt_node_remove (struct xe_ggtt_node * node , bool invalidate )
330
327
{
331
- struct xe_ggtt * ggtt = node -> ggtt ;
332
- struct xe_device * xe = tile_to_xe (ggtt -> tile );
328
+ struct xe_ggtt * ggtt ;
329
+ struct xe_device * xe ;
330
+
331
+ if (!node || !node -> ggtt )
332
+ return ;
333
+
334
+ ggtt = node -> ggtt ;
335
+ xe = tile_to_xe (ggtt -> tile );
333
336
334
337
node -> invalidate_on_remove = invalidate ;
335
338
You can’t perform that action at this time.
0 commit comments