Commit 547d340d authored by Christian Gmeiner's avatar Christian Gmeiner Committed by Lucas Stach

drm/etnaviv: clear alloced event

Results in less code as the users do not set every struct member to 0/NULL.
Signed-off-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: default avatarLucas Stach <l.stach@pengutronix.de>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
parent 357713ce
...@@ -1169,6 +1169,7 @@ static int event_alloc(struct etnaviv_gpu *gpu, unsigned nr_events, ...@@ -1169,6 +1169,7 @@ static int event_alloc(struct etnaviv_gpu *gpu, unsigned nr_events,
int event = find_first_zero_bit(gpu->event_bitmap, ETNA_NR_EVENTS); int event = find_first_zero_bit(gpu->event_bitmap, ETNA_NR_EVENTS);
events[i] = event; events[i] = event;
memset(&gpu->event[event], 0, sizeof(struct etnaviv_event));
set_bit(event, gpu->event_bitmap); set_bit(event, gpu->event_bitmap);
} }
...@@ -1365,7 +1366,6 @@ int etnaviv_gpu_submit(struct etnaviv_gpu *gpu, ...@@ -1365,7 +1366,6 @@ int etnaviv_gpu_submit(struct etnaviv_gpu *gpu,
} }
gpu->event[event].fence = fence; gpu->event[event].fence = fence;
gpu->event[event].sync_point = NULL;
submit->fence = dma_fence_get(fence); submit->fence = dma_fence_get(fence);
gpu->active_fence = submit->fence->seqno; gpu->active_fence = submit->fence->seqno;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment