@@ -1324,13 +1324,7 @@ void i915_driver_unload(struct drm_device *dev)
static int i915_driver_open(struct drm_device *dev, struct drm_file *file)
{
- int ret;
-
- ret = i915_gem_open(dev, file);
- if (ret)
- return ret;
-
- return 0;
+ return i915_gem_open(dev, file);
}
/**
@@ -298,13 +298,7 @@ static void intel_engine_cleanup_scratch(struct intel_engine_cs *engine)
*/
int intel_engine_init_common(struct intel_engine_cs *engine)
{
- int ret;
-
- ret = intel_engine_init_breadcrumbs(engine);
- if (ret)
- return ret;
-
- return 0;
+ return intel_engine_init_breadcrumbs(engine);
}
void intel_engine_reset_irq(struct intel_engine_cs *engine)
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- Changes in v3: - Keep the wrapper function. Cleanup of variables and assignments only. - Fix intel_engine_init_common() as well. drivers/gpu/drm/i915/i915_drv.c | 8 +------- drivers/gpu/drm/i915/intel_engine_cs.c | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-)