Message ID | 20190225183927.GA32733@lkp-wsm-ep1 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | drm/lima: fix ifnullfree.cocci warnings | expand |
--- a/drivers/gpu/drm/lima/lima_sched.c +++ b/drivers/gpu/drm/lima/lima_sched.c @@ -31,8 +31,7 @@ int lima_sched_slab_init(void) void lima_sched_slab_fini(void) { - if (lima_fence_slab) - kmem_cache_destroy(lima_fence_slab); + kmem_cache_destroy(lima_fence_slab); } static inline struct lima_fence *to_lima_fence(struct dma_fence *fence) @@ -142,8 +141,7 @@ void lima_sched_task_fini(struct lima_sc dma_fence_put(task->dep[i]); } - if (task->dep) - kfree(task->dep); + kfree(task->dep); if (task->bos) { for (i = 0; i < task->num_bos; i++)