On Tue, Nov 08, 2016 at 03:54:50PM +0900, Gustavo Padovan wrote:
>From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
>
>+static struct dma_fence *get_crtc_fence(struct drm_crtc *crtc,
>+                                      struct drm_crtc_state *crtc_state)
>+{
>+      struct dma_fence *fence;
>+
>+      fence = kzalloc(sizeof(*fence), GFP_KERNEL);
>+      if (!fence)
>+              return NULL;
>+
>+      dma_fence_init(fence, &drm_crtc_fence_ops, &crtc->fence_lock,
>+                     crtc->fence_context, ++crtc->fence_seqno);
>+
>+      return fence;
>+}
>+

crtc_state is unused in this function.

-Brian

Reply via email to