mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
drm/xe: Simplify final return from xe_irq_install()
At the end of the function, we will always return err no matter it's value. Simplify this by just returning the result of drmm_add_action_or_reset(). Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230915220233.59736-1-gustavo.sousa@intel.com Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
fc678ec7c2
commit
d435a03964
|
|
@ -592,11 +592,7 @@ int xe_irq_install(struct xe_device *xe)
|
|||
|
||||
xe_irq_postinstall(xe);
|
||||
|
||||
err = drmm_add_action_or_reset(&xe->drm, irq_uninstall, xe);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return err;
|
||||
return drmm_add_action_or_reset(&xe->drm, irq_uninstall, xe);
|
||||
}
|
||||
|
||||
void xe_irq_shutdown(struct xe_device *xe)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user