Unverified Commit f2a28a83 authored by Minghao Chi's avatar Minghao Chi Committed by Maxime Ripard
Browse files

drm/vc4: simplify the return expression of vc4_prepare_fb()

parent 37f67d39
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1350,7 +1350,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,
			  struct drm_plane_state *state)
{
	struct vc4_bo *bo;
	int ret;

	if (!state->fb)
		return 0;
@@ -1362,11 +1361,7 @@ static int vc4_prepare_fb(struct drm_plane *plane,
	if (plane->state->fb == state->fb)
		return 0;

	ret = vc4_bo_inc_usecnt(bo);
	if (ret)
		return ret;

	return 0;
	return vc4_bo_inc_usecnt(bo);
}

static void vc4_cleanup_fb(struct drm_plane *plane,