File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1819,7 +1819,7 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
1819
1819
/* Switch away from any user context. */
1820
1820
ret = gen8_switch_to_updated_kernel_context (dev_priv , oa_config );
1821
1821
if (ret )
1822
- goto out ;
1822
+ return ret ;
1823
1823
1824
1824
/*
1825
1825
* The OA register config is setup through the context image. This image
@@ -1838,7 +1838,7 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
1838
1838
wait_flags ,
1839
1839
MAX_SCHEDULE_TIMEOUT );
1840
1840
if (ret )
1841
- goto out ;
1841
+ return ret ;
1842
1842
1843
1843
/* Update all contexts now that we've stalled the submission. */
1844
1844
list_for_each_entry (ctx , & dev_priv -> contexts .list , link ) {
@@ -1850,10 +1850,8 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
1850
1850
continue ;
1851
1851
1852
1852
regs = i915_gem_object_pin_map (ce -> state -> obj , I915_MAP_WB );
1853
- if (IS_ERR (regs )) {
1854
- ret = PTR_ERR (regs );
1855
- goto out ;
1856
- }
1853
+ if (IS_ERR (regs ))
1854
+ return PTR_ERR (regs );
1857
1855
1858
1856
ce -> state -> obj -> mm .dirty = true;
1859
1857
regs += LRC_STATE_PN * PAGE_SIZE / sizeof (* regs );
@@ -1863,7 +1861,6 @@ static int gen8_configure_all_contexts(struct drm_i915_private *dev_priv,
1863
1861
i915_gem_object_unpin_map (ce -> state -> obj );
1864
1862
}
1865
1863
1866
- out :
1867
1864
return ret ;
1868
1865
}
1869
1866
You can’t perform that action at this time.
0 commit comments