summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2023-09-15 19:02:33 -0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:41:14 -0500
commitd435a039646eee712f4d5da2405181015c30bb1a (patch)
tree460b3538d73d524fb242e6f5a6dc52b1b38d5995
parentfc678ec7c2e037fcc1bb678403036a9772e61dbd (diff)
downloadlinux-stable-d435a039646eee712f4d5da2405181015c30bb1a.tar.gz
linux-stable-d435a039646eee712f4d5da2405181015c30bb1a.tar.bz2
linux-stable-d435a039646eee712f4d5da2405181015c30bb1a.zip
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>
-rw-r--r--drivers/gpu/drm/xe/xe_irq.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/xe/xe_irq.c b/drivers/gpu/drm/xe/xe_irq.c
index ff71a3aa08ce..dec3d518b3fc 100644
--- a/drivers/gpu/drm/xe/xe_irq.c
+++ b/drivers/gpu/drm/xe/xe_irq.c
@@ -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)